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

bug: tuple metavar not correctly displayed

Open viniciusglinden opened this issue 1 year ago • 1 comments

    test_selection = parser.add_argument_group("Test selection", "What should the script test")
    mutex_group.add_argument(
        "--test", "-t", metavar=("A", "B"), type=int, nargs=2, help="Select a specific A and B to run"
    )

will display under "Test selection":

--test A, -t A- Select a specific A and B to run (default: None)

viniciusglinden avatar Jul 24 '24 14:07 viniciusglinden

issue probably occurs in this line: https://github.com/tox-dev/sphinx-argparse-cli/blob/main/src/sphinx_argparse_cli/_logic.py#L238

viniciusglinden avatar Jul 24 '24 14:07 viniciusglinden