sphinxcontrib.argdoc.test.cases.c6_multiprefix module¶
Multiple prefix characters
ArgumentParser takes a prefix_chars option which allows
the use of keyword arguments that begin with characters other than ‘-‘.
Here we test a ArgumentParser that uses both ‘-‘ and ‘+’.
Command-line arguments¶
Positional arguments¶
Argument Description shortpos1shortpos2one-line help text shortpos3this is very, very long help text which should span multiple lines and thus require special parsing. We’ll also add special chars (default: 513251324) reallyreallyreallyreallyreallyreallyreallyreallylongpositionalargument1reallyreallyreallyreallyreallyreallyreallyreallylongpositionalargument2one-line help text reallyreallyreallyreallyreallyreallyreallyreallylongpositionalargument3this is very, very long help text which should span multiple lines and thus require special parsing. We’ll also add special chars (default: 513251324)
Optional arguments¶
Argument Description -h,--helpshow this help message and exit -a X--bar Xone-line help text --c X X,--arg3 X Xthis is very, very long help text which should span multiple lines and thus require special parsing. We’ll also add special chars (default: 513251324) +x X++another ANOTHERAnother argument +y ARG4 [ARG4 ...],++arg4 ARG4 [ARG4 ...]An argument beginning with ‘+’