aws-amplify / aws-amplify/amplify-cli
help command not working for some subcommands (`add|update|remove <category>`)
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### How did you install the Amplify CLI?
_No response_
### If applicable, what version of Node.js are you using?
_No response_
### Amplify CLI Version
11.0.3
### What operating system are you using?
Mac
### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
none
### Describe the bug
When adding working help command that contains a sub command, the output does not provide the correct information.
the output also contains
```
Use "amplify status -h" to see subcommand-specific help
```
for example:
```
amplify status api -h
USAGE
amplify status [-v | --verbose]
DESCRIPTION
Shows the state of local resources not yet pushed to the cloud
SUBCOMMANDS
[category] Shows the state of local resources not yet pushed to the cloud
Use "amplify status -h" to see subcommand-specific help
FLAGS
-v | --verbose Shows verbose details, including cloudformation differences
LEARN MORE
https://docs.amplify.aws/cli/commands/status
```
```
amplify add -h api
USAGE
amplify add
Where is one of: notifications, api, auth, custom, storage,
analytics, function, geo, hosting, interactions, predictions
DESCRIPTION
Adds a resource for an Amplify category in your local backend
SUBCOMMANDS
Adds a resource for an Amplify category in your local backend
Use "amplify add -h" to see subcommand-specific help
LEARN MORE
https://docs.amplify.aws/cli/commands/add
```
### Expected behavior
subcommands should be correctly dispalyed on the help command
### Reproduction steps
1. run `amplify status api -h`
2. or `amplify add -h api`
### Project Identifier
_No response_
### Log output
```
# Put your logs below this line
```
### Additional information
_No response_
### Before submitting, please confirm:
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.
Contributor guide
Assessment
This issue has not been assessed yet.