Skip to content

Conversation

rauhul
Copy link
Contributor

@rauhul rauhul commented Apr 23, 2024

Adds a new API to ParsableArguments and ParsableCommand for getting the usage string. This allows clients to use argument-parser in a more piecemeal way to construct their own error screens.

@rauhul rauhul added the enhancement New feature or request label Apr 23, 2024
@rauhul rauhul requested a review from natecook1000 April 23, 2024 20:22
@rauhul
Copy link
Contributor Author

rauhul commented Apr 23, 2024

@swift-ci please test

@natecook1000
Copy link
Member

This looks great! Thanks for the extra test coverage on custom usage strings. Do we have a test for usage of a subcommand?

@rauhul
Copy link
Contributor Author

rauhul commented May 1, 2024

@swift-ci please test

@rauhul rauhul enabled auto-merge (squash) May 1, 2024 00:06
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.

🚢

rauhul added 2 commits April 30, 2024 17:10
Adds a new API to ParsableArguments and ParsableCommand for getting the usage string. This allows clients to use argument-parser in a more piecemeal way to construct their own error screens.
@rauhul rauhul force-pushed the rauhul/usageString branch from c2c96f9 to 6b79ae6 Compare May 1, 2024 00:10
@rauhul
Copy link
Contributor Author

rauhul commented May 1, 2024

@swift-ci please test

@rauhul rauhul merged commit cfac15f into main May 1, 2024
@rauhul rauhul deleted the rauhul/usageString branch May 1, 2024 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
2 participants