Skip to content

Commit

Permalink
feat(misc): display skip-nx-cache option in help output
Browse files Browse the repository at this point in the history
Tell the user that --skip-nx-cache option can be used with the execution of targets. The option will be displayed in both 'nx --help' and 'nx [project][:target][:configuration] --help' commands.

ISSUES CLOSED: 3338
  • Loading branch information
sebastiandg7 authored and vsavkin committed Dec 14, 2020
1 parent 6fb074e commit 30c33d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/tao/src/shared/print-help.ts
Expand Up @@ -28,6 +28,7 @@ ${chalk.bold(header + positional + ' [options,...]')}
${chalk.bold('Options')}:
${args}
${formatOption('skip-nx-cache', 'Skip the use of Nx cache.')}
${formatOption('help', 'Show available options for project target.')}
`)
);
Expand Down
2 changes: 2 additions & 0 deletions packages/workspace/src/command-line/nx-commands.ts
Expand Up @@ -31,6 +31,8 @@ export const commandsObject = yargs
You can also use the infix notation to run a target:
(e.g., nx serve myapp --configuration=production)
You can skip the use of Nx cache by using the --skip-nx-cache option.
`
)
.command(
Expand Down

0 comments on commit 30c33d3

Please sign in to comment.