Skip to content

Commit

Permalink
feat(cli): add command option aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
hanna-skryl committed Sep 24, 2024
1 parent 7948333 commit 3ae1626
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/cli-e2e/tests/__snapshots__/help.e2e.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ Global Options:
.(ts|mjs|js). [string]
--tsconfig Path to a TypeScript config, to be used when loading config
file. [string]
--onlyPlugins List of plugins to run. If not set all plugins are run.
-p, --onlyPlugins List of plugins to run. If not set all plugins are run.
[array] [default: []]
--skipPlugins List of plugins to skip. If not set all plugins are run.
-P, --skipPlugins List of plugins to skip. If not set all plugins are run.
[array] [default: []]
Persist Options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const onlyPluginsOption: Options = {
type: 'array',
default: [],
coerce: coerceArray,
alias: 'p',
};

export function yargsOnlyPluginsOptionsDefinition(): Record<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const skipPluginsOption: Options = {
type: 'array',
default: [],
coerce: coerceArray,
alias: 'P',
};

export function yargsSkipPluginsOptionsDefinition(): Record<
Expand Down

0 comments on commit 3ae1626

Please sign in to comment.