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

Using -h help alias fails for any generator #784

Open
akhnot opened this issue Apr 19, 2023 · 0 comments
Open

Using -h help alias fails for any generator #784

akhnot opened this issue Apr 19, 2023 · 0 comments

Comments

@akhnot
Copy link

akhnot commented Apr 19, 2023

Type of issue

Bug

When on call command yo -h the generator crashes with some error like the following
Cannot read properties of undefined (reading 'initializing')

It works when --help is used instead

The step ('initializing') depends on the generator and could also be prompting


My environment

  • OS version/details: MacOS Ventura
  • Node version: 18.13.0 or 16.19.1
  • npm version: 8.19.3
  • Version of yo : 4.3.1

Expected behavior

The help is returned

Current behavior

error is returned
Cannot read properties of undefined (reading 'initializing')

Steps to reproduce the behavior

run command yo -h

Command line output

Cannot read properties of undefined (reading 'initializing')


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

No branches or pull requests

1 participant