yeoman / yo

CLI tool for running Yeoman generators

Home Page:http://yeoman.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using -h help alias fails for any generator

akhnot opened this issue · comments

commented

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