-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: preserve --show-advanced to sub-commands (#447)
**Problem:** Using `--show-advanced` on subcommands isn't showing the hidden/advanced options. **Solution:** Yargs doesn't seem to automatically carry this option through to subcommands, so forcing it across in the command visitor will apply it correctly.
- Loading branch information
1 parent
3051ff2
commit 218b130
Showing
2 changed files
with
15 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@onerepo/core': patch | ||
'onerepo': patch | ||
'@onerepo/yargs': patch | ||
--- | ||
|
||
Worked around a bug in Yargs that prevented `--show-advanced` from showing hidden/advanced help documentation when used on sub-commands. |
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