paul j3 <ajipa...@gmail.com> added the comment:

We could look into using a different more compact 'prog' for these error 
messages.

Currently the subparser 'prog' uses the main prog plus positionals plus the 
subparser name.  The goal is to construct a subparser usage that reflects 
required input.  

This is fine for the usage line, but could be too verbose for some errors.  In 
an error, the 'prog' just helps identify which argument has problems, and 
doesn't need the extra usage information.   Most of the time that isn't an 
issue, since we don't use positional much in the main parser (and when used 
can't have variable nargs).

But I don't have immediate ideas as to what can be conveniently (and safely) 
changed.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42297>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to