forked from cacjs/cac
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cacjs#37: better help output for negated options
Not only doesn't show the `(default: true)` for negated options, which was quite confusing, but merges them with the line describing the affirmative case. Added a new test. Since it relies on help output, it is a bit brittle, like the other "snapshot"-based ones. I didn't the same execa snapshot for this because it would make a test take a lot longer to run (becasue spawns a process). * README.md (Options): Mention [no-]foo syntax. * src/Command.ts (outputHelp): Consider options with negated counterparts when printing. * src/__test__/index.test.ts ('negated option help output'): New test.
- Loading branch information
1 parent
de2edee
commit 436eebe
Showing
3 changed files
with
66 additions
and
7 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