yeoman / yo

CLI tool for running Yeoman generators
http://yeoman.io
BSD 2-Clause "Simplified" License
3.8k stars 396 forks source link

Using -h help alias fails for any generator #784

Open akhnot opened 1 year ago

akhnot commented 1 year ago

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

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')