Skip to content

Binary flags only show the first option in the help text #2046

@allmightyspiff

Description

@allmightyspiff
@click.option(
    '--enable/--disable',
    default=True,
    help="""
    Enable/Disable snapshot notification. Use `slcli block snapshot-set-notification volumeId --enable` to enable.
    """,
    required=True)

In the click option has mentioned, --enable/--disable but in the cli only --enable is only displayed.

./slcli block snapshot-set-notification --help                
Usage: slcli block snapshot-set-notification [OPTIONS] VOLUME_ID

        Enables/Disables snapshot space usage threshold warning for a given volume.

┌────┬───────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│    │ volume_id │                                                                                                                            │
│    │ --enable  │ Enable/Disable snapshot notification. Use `slcli block snapshot-set-notification volumeId --enable` to enable.  [required] │
│ -h │ --help    │ Show this message and exit.                                                                                                │
└────┴───────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Metadata

Metadata

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions