Closed zsquareplusc closed 6 years ago
Likely caused by https://bugs.python.org/issue23058
Workaround:
parse_known_args()
parser.parse_args(args, namespace=namespace)
unlike other solutions found in the net, this solution also works with action="count". However the global options do not show up in the help.
action="count"
Likely caused by https://bugs.python.org/issue23058
Workaround:
parse_known_args()
it returns a namespace and filtered argument listparser.parse_args(args, namespace=namespace)
unlike other solutions found in the net, this solution also works with
action="count"
. However the global options do not show up in the help.