Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workspace generator ignore the first argument #12981

Closed
danr-za opened this issue Nov 3, 2022 · 2 comments
Closed

Workspace generator ignore the first argument #12981

danr-za opened this issue Nov 3, 2022 · 2 comments
Labels

Comments

@danr-za
Copy link
Contributor

danr-za commented Nov 3, 2022

Current Behavior

workspace-generator ignore the first argument.
Given the following command:
nx workspace-generator my-lib --name=foo, it will produce the following error:
Not enough non-option arguments: got 0, need at least 1

But if I run nx workspace-generator my-lib my-lib --name=foo (notice the generator name provided twice) everything works as expected.

We upgraded from 14.5.10 so I am not sure in which version it broke.

Expected Behavior

Workspace generator should respect the first argument.

Steps to Reproduce

  • Create a repo
  • Create a workspace-generator
  • Try to run it as instructed in the Current Behavior

Failure Logs

nx workspace-generator my-lib (options)

Options:
  --help     Show help                                                                                                                                                                                 [boolean]
  --version  Show version number                                                                                                                                                                       [boolean]
  --name     The name of the library directory (will contain common, desktop, and ios libraries)                                                                                                        [string]

Find more information and examples at https://nx.dev/nx/workspace-generator

Not enough non-option arguments: got 0, need at least 1

Environment

  Node : 16.16.0
   OS   : darwin arm64
   yarn : 3.2.4
   
   nx : 15.0.7
   @nrwl/angular : Not Found
   @nrwl/cypress : 15.0.7
   @nrwl/detox : Not Found
   @nrwl/devkit : 15.0.7
   @nrwl/esbuild : Not Found
   @nrwl/eslint-plugin-nx : 15.0.7
   @nrwl/expo : Not Found
   @nrwl/express : Not Found
   @nrwl/jest : 15.0.7
   @nrwl/js : 15.0.7
   @nrwl/linter : 15.0.7
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : 15.0.7
   @nrwl/nx-cloud : Not Found
   @nrwl/nx-plugin : Not Found
   @nrwl/react : 15.0.7
   @nrwl/react-native : Not Found
   @nrwl/rollup : 15.0.7
   @nrwl/schematics : Not Found
   @nrwl/storybook : 15.0.7
   @nrwl/web : 15.0.7
   @nrwl/webpack : 15.0.7
   @nrwl/workspace : 15.0.7
   typescript : 4.7.4
   ---------------------------------------
   Local workspace plugins:
   ---------------------------------------
   Community plugins:
         rxjs: 6.6.7
         nx-stylelint: 14.0.2
@FrozenPandaz
Copy link
Collaborator

This is a duplicate of #12677 and a version will be published soon.

@FrozenPandaz FrozenPandaz added the scope: core core nx functionality label Nov 3, 2022
@FrozenPandaz FrozenPandaz closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2022
@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants