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

Feature switches are not handled correctly #41

Open
stephenfin opened this issue Apr 17, 2020 · 0 comments
Open

Feature switches are not handled correctly #41

stephenfin opened this issue Apr 17, 2020 · 0 comments

Comments

@stephenfin
Copy link
Member

stephenfin commented Apr 17, 2020

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 stephenfin changed the title Incorrect switch is highlighted Switches are not handled correctly Apr 17, 2020
@stephenfin stephenfin changed the title Switches are not handled correctly Feature switches are not handled correctly Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant