Message315712
| Author |
paul.j3 |
| Recipients |
paul.j3, porton |
| Date |
2018年04月24日.18:34:58 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1524594898.34.0.682650639539.issue33343@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This issue was raised in https://bugs.python.org/issue12713,
argparse: allow abbreviation of sub commands by users
A patch was implemented, and then reverted when it was found to be buggy.
Subcommands are not parsed the same as long options. Subcommands are actually 'choices' of a positional argument. Trying to allow abbreviations of subcommands allowed them in all 'choices', resulting in backward compatibility problems.
I recommend using the suparser alias mechanism instead.
(I think this issue should be closed). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2018年04月24日 18:34:58 | paul.j3 | set | recipients:
+ paul.j3, porton |
| 2018年04月24日 18:34:58 | paul.j3 | set | messageid: <1524594898.34.0.682650639539.issue33343@psf.upfronthosting.co.za> |
| 2018年04月24日 18:34:58 | paul.j3 | link | issue33343 messages |
| 2018年04月24日 18:34:58 | paul.j3 | create |
|