Skip to content

Commit b060079

Browse files
authored
fix(core): make 'key' parameter optional in register command (#30365)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> Calling `nx register` requires users to enter a key. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Calling `nx register` should work without having users enter a key. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
1 parent fe49308 commit b060079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nx/src/command-line/register/command-object.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface RegisterOptions {
88
}
99

1010
export const yargsRegisterCommand: CommandModule<{}, RegisterOptions> = {
11-
command: 'register <key>',
11+
command: 'register [key]',
1212
aliases: ['activate-powerpack'],
1313
describe: false,
1414
builder: (yargs) =>

0 commit comments

Comments
 (0)