← Back to issue list

Register the `help` command

View original Github issue

Metadata

Project
craft-cli
Number
#200
Type
issue
State
open
Author
mr-cal
Labels
Created
2023-11-09 07:25:06+00:00
Updated
2023-11-09 07:25:06+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Register help as a command so it can provide help text for itself. ### Why it needs to get done Consider the following user experience. Rockcraft suggests using the `help` command: ``` > rockcraft help Usage: rockcraft [help] <command> ... For more information about a command, run 'rockcraft help <command>'. ``` However, `help` does not have any help itself: ``` > rockcraft help help Usage: rockcraft [options] command [args]... Try 'rockcraft -h' for help. Error: command 'help' not found to provide help for ``` Snapcraft is an interesting example because it has a help command registered in snapcraft_legacy. Source: [LP#2043012](https://bugs.launchpad.net/snapcraft/+bug/2043012) from @brlin-tw

Evaluation history

No evaluation history available.