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

Refactor CLI flags to support explicit disable options #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hedon954
Copy link

@hedon954 hedon954 commented Apr 26, 2024

Changed existing CLI flags for password generation to no_xxx format to allow explicit disabling of character types. The transition includes changing --uppercase to --no-uppercase with its default set to false, similarly for --lowercase, --number, and --symbol.

This modification addresses a significant limitation of the previous approach:

  • if the default were set to false, users would need to specify each option to enable it;
  • if set to true, it would be impossible to disable them.

Changed existing CLI flags for password generation to `no_xxx` format to allow explicit disabling of character types. The transition includes changing `--uppercase` to `--no-uppercase` with its default set to false, similarly for `--lowercase`, `--number`, and `--symbol`. This modification addresses a significant limitation of the previous approach: if the default were set to false, users would need to specify each option to enable it; if set to true, it would be impossible to disable them.
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

Successfully merging this pull request may close these issues.

1 participant