angular / angular/angular-cli

ng generate m help does not generate module but shows help menu

Open
#25,705 0 comments 0 reactions 0 assignees View on GitHub
area: @angular/cli freq1: low severity3: broken type: bug/fix
Dominant language
TypeScript
Stars
27k
Forks
11.8k
Avg merge
14h 23m
Merged PRs (30d)
162

Description

### Which @angular/* package(s) are the source of the bug?

compiler-cli, Don't known / other

### Is this a regression?

No

### Description

Today I was trying to generate a module called "help" using the CLI. I ran the command:
```
ng generate m help
```

This does not generate the module but shows up the angular cli help menu.

![image](https://github.com/angular/angular/assets/1130664/59aaae3c-d239-4c67-badc-f94b874f0b18)

### Please provide a link to a minimal reproduction of the bug

_No response_

### Please provide the exception or error you saw

_No response_

### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 16.0.0
Node: 18.15.0
Package Manager: npm 9.5.0
OS: win32 x64

Angular: 16.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... platform-server, router

Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1600.0
@angular-devkit/build-angular 16.0.0
@angular-devkit/core 16.0.0
@angular-devkit/schematics 16.0.0
@nguniversal/builders 16.0.0
@nguniversal/express-engine 16.0.0
@schematics/angular 16.0.0
rxjs 7.8.1
typescript 5.0.4
```

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce `ng generate m help` with the Angular CLI version described in the issue, then inspect the CLI generate command's handling of the `m help` arguments. Done means the command generates a module named `help` instead of displaying the help menu.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.