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

Dealing with Flags that are Mutually Exclusive #5

Open
Zalanshah64 opened this issue May 8, 2022 · 0 comments
Open

Dealing with Flags that are Mutually Exclusive #5

Zalanshah64 opened this issue May 8, 2022 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@Zalanshah64
Copy link
Owner

Certain flags should not be able to be written at the same time. For example:

  • --difficulty should only be allowed to be called when --generate or --play are called
  • --generate shouldn't be callable when --play is called, and vice versa
  • --help and --version shouldn't allow any other flags to work together
  • Maybe allowing --generate and --play alongside --solve would be okay? I'm not totally sure about this idea though.

I think the best way of dealing with flags is creating a priority list, and letting one thing take priority over another (i.e. help > version > play > generate, etc), while of course ensuring there's no mutually exclusive calls.

@Zalanshah64 Zalanshah64 added bug Something isn't working enhancement New feature or request labels May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant