tox-dev / sphinx-argparse-cli

Render CLI arguments (sub-commands friendly) defined by the argparse module.
MIT License
23 stars 9 forks source link

optional arguments with `nargs` issues #159

Open ktbarrett opened 7 months ago

ktbarrett commented 7 months ago
    group.add_argument(
        "--lib-name-path",
        help="Print the absolute path of interface library for given interface (VPI/VHPI/FLI) and simulator",
        nargs=2,
        metavar=("INTERFACE", "SIMULATOR"),
    )

generates the following documentation

image

Only the first of the two metavars is printed and the (default: None) clause is unnecessary.