Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optional arguments with nargs issues #159

Open
ktbarrett opened this issue Mar 22, 2024 · 0 comments
Open

optional arguments with nargs issues #159

ktbarrett opened this issue Mar 22, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@ktbarrett
Copy link

    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.

@mondeja mondeja added bug Something isn't working help wanted Extra attention is needed labels Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants