paul j3 <ajipa...@gmail.com> added the comment:
This is intended behavior of multi-nargs positionals. The 'one' string is consumed by the 'file' argument, and there's no positional argument left to consume the other strings. The topic was raised and discussed previously https://bugs.python.org/issue14191 -argparse doesn't allow optionals within positionals The fix is to use 'parser.parse_intermixed_args()', as documented in https://docs.python.org/3/library/argparse.html#intermixed-parsing ---------- nosy: +paul.j3 resolution: -> duplicate stage: test needed -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36863> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com