sphinxcontrib.argdoc.test.cases.c2_only_subparsers module¶
Subcommands with no main program arguments
ArgumentParser supports use of subcommands,
each of which might have their own arguments and argument groups.
Here these are tested for a parser that has none of its own arguments,
except --help.
Command-line arguments¶
Optional arguments¶
Argument Description -h,--helpshow this help message and exit
Subcommands¶
choose one of the following:
Argument Description fooRun the foo subprogram barTake output from foo subprogram and run it through the barsubprogram
foo subcommand¶
This is a long description of what a foo program might do. It spans
multiple lines, so that we can test things reasonably.
Positional arguments¶
Argument Description fooarg1foo argument 1 fooarg2foo argument 2
Optional arguments¶
Argument Description -h,--helpshow this help message and exit -f Fshort foo argument --fookwarg FOOKWARGfoo keyword argument -v VERBOSE,--verbose VERBOSEfoo verbosely