sphinx-argparse-cli icon indicating copy to clipboard operation
sphinx-argparse-cli copied to clipboard

optional arguments with `nargs` issues

Open ktbarrett opened this issue 11 months ago • 0 comments

    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.

ktbarrett avatar Mar 22 '24 07:03 ktbarrett