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

Fixup help options for built-in flags #474

Merged
merged 3 commits into from Aug 26, 2022

Conversation

rauhul
Copy link
Contributor

@rauhul rauhul commented Aug 25, 2022

  • Fixes a bug where built-in flags such as --help and --version were not
    properly marked with isOptional which resulted in them appearing in
    generated content (such as completion scripts and manuals) as required
    arguments.

- Fixes a manual generation bug where options in the synopsis were not
  given an option value name and flags were.
- Fixes a bug where built-in flags such as --help and --version were not
  properly marked with isOptional which resulted in them appearing in
  generated content (such as completion scripts and manuals) as required
  arguments.
@rauhul
Copy link
Contributor Author

rauhul commented Aug 25, 2022

@swift-ci please test

Copy link
Member

@natecook1000 natecook1000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you!

@rauhul
Copy link
Contributor Author

rauhul commented Aug 26, 2022

@swift-ci please test

@rauhul rauhul merged commit f1c6afd into main Aug 26, 2022
@rauhul rauhul deleted the fixup-generated-flags-help-options branch August 26, 2022 07:13
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.

None yet

2 participants