-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CLI improvements This commit is a first step toward #742. Note that the migration is not totally done. Aside from putting in together the initial infrastructure to use `ValueParserFactory` the main intention of this change is to make it easier to derive argument name and documentation from option groups, said differently, make the process of adding new arguments more manageable and less repetitive. * Improved help * Mark js and codegen options as optional and use default if not present * Clippy fixes * Fully implement `ValueParserFactory` This commit removes the usage of `FromStr` and completely migrates to `ValueParserFactory` The main complication here is the deeply nested `Vec` needed in order for `clap` to allow multiple occurrences of the same option, e.g., `-C key=val -C key=val` * More efficient `to_kebab_case`
- Loading branch information
1 parent
525d3f7
commit 4031546
Showing
4 changed files
with
283 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.