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

Creating a project called help #2167

Open
2 of 4 tasks
ethansocal opened this issue Jul 11, 2023 · 3 comments
Open
2 of 4 tasks

Creating a project called help #2167

ethansocal opened this issue Jul 11, 2023 · 3 comments

Comments

@ethansocal
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Creating a project named help doesn't work. Instead, the following is outputted with no prompt for input at all:

image

Minimum reproduction code

N/A

Steps to reproduce

  1. nest new help
  2. The package manager prompt is displayed, along with the help message. Then, it exits immediately. The package manager prompt doesn't let you input anything, as it already just kicks you out of the command.

Expected behavior

A new project named help should be created.

Package version

10.1.8

NestJS version

No response

Node.js version

No response

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@jmcdo29
Copy link
Member

jmcdo29 commented Jul 12, 2023

Interesting. This looks to be a side effect of commander. I checked with my @ogma/cli package which uses commander under the hood, and got the same immediate help output as if I had passed the --help flag

@micalevisk
Copy link
Member

micalevisk commented Oct 9, 2023

that help message is displayed after calling this line

return await prompt(questions);

but that is not related to our side.

The commander version we're using is too old but as Jay said, this happens in the latest version of commander as well 🤔

@kamilmysliwiec
Copy link
Member

Should we create a corresponding issue in the commander repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants