click-man icon indicating copy to clipboard operation
click-man copied to clipboard

Feature switches are not handled correctly

Open stephenfin opened this issue 4 years ago • 0 comments

Click allows you define options like so [1]:

@click.option('--public/--private', default=False)

In this case, two mutually exclusive options will appear for the command, --public and --private. In the above case, the default is False which effectively means --private is the default choice. However, looking at a rendered man page, I see something like so:

--public / --private

I suspect this is because we need to special case these options but are not doing so.

stephenfin avatar Apr 17 '20 22:04 stephenfin