-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): update boolean logic and add package parser util (#2449)
* Update isHelpOrVersionCmd logic & add utils * Update packages/cli/src/lib/utils/packageParser.ts Co-authored-by: RyanDagg <ryandagg@users.noreply.github.com> * Update packages/cli/src/lib/utils/packageParser.ts Co-authored-by: RyanDagg <ryandagg@users.noreply.github.com> * Update logic with refactored package parser --------- Co-authored-by: RyanDagg <ryandagg@users.noreply.github.com>
- Loading branch information
1 parent
0a4a28e
commit 9c7099c
Showing
3 changed files
with
33 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const {oclif} = require('../../../package.json') | ||
|
||
export function getAllVersionFlags() { | ||
return [...oclif.additionalVersionFlags, '--version'] | ||
} | ||
|
||
export function getAllHelpFlags() { | ||
return [...oclif.additionalHelpFlags, '--help', 'help'] | ||
} |