Shani Armon added the comment:
Bumping, since no reply was made to my previous comment. If this is not
relevant at all can this be closed or marked as such, so that it may be raised
in python-dev?
--
___
Python tracker
<https://bugs.python.
Shani Armon added the comment:
Also, this is quite different from previous issues with REMAINDER. This fits in
line with how the example suggests remainder should be used. I wand some flags
(version, configuration) to be separate and exclusive to subcommands. And the
usage is not ambiguous
Shani Armon added the comment:
Yes. The pull request contains the special handling. For the purpose of
REMAINDER positionals, the default is changed to the empty list that was
returned if no arguments were passed.
For the purpose of positional argument, that is equivalent to nothing being
Shani Armon added the comment:
Why is REMAINDER any more complicated than ZERO_OR_MORE? I need to make a
subcommand system (think jupyter style) and -- isn't an intuitive interface.
Jupyter just doesn't use argparse in the subcommand case. I prever to in order
to support opt
Change by Shani Armon :
--
keywords: +patch
pull_requests: +19233
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/19919
___
Python tracker
<https://bugs.python.org/issu
New submission from Shani Armon :
Options specified with the REMAINDER nargs should be treated as optional.
And an empty list should be treated as default.
--
components: Library (Lib)
messages: 368126
nosy: Shani Armon, rhettinger
priority: normal
severity: normal
status: open
title