click-contrib / click-man

Automate generation of man pages for python click applications :star:
MIT License
163 stars 35 forks source link

Feature switches are not handled correctly #41

Open stephenfin opened 4 years ago

stephenfin commented 4 years ago

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.