Message 315712 - Python tracker

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:58paul.j3setrecipients: + paul.j3, porton
2018-04-24 18:34:58paul.j3setmessageid: <1524594898.34.0.682650639539.issue33343@psf.upfronthosting.co.za>
2018-04-24 18:34:58paul.j3linkissue33343 messages
2018-04-24 18:34:58paul.j3create