Questions tagged as 'argparse'

1
answer

Is it possible to translate the own messages of argparse?

I have several command-line python scripts that handle several parameters to invoke them, this I resolve through argparse , which is very simple, however this library has some messages in English (at least in python 3.4) that I would like to tr...
asked by 05.05.2017 / 17:45
0
answers

AttributeError: '_SubParsersAction' object has no attribute 'add_mutually_exclusive_group'

I have a code that I am using argparse and I want to use add_mutually_exclusive_group in 2 subparsers because I want one of the 2 to be required, and I get this error: AttributeError: '_SubParsersAction' object has no attribute 'add_mut...
asked by 22.12.2018 / 21:50