Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register the help command #200

Open
mr-cal opened this issue Nov 9, 2023 · 0 comments
Open

Register the help command #200

mr-cal opened this issue Nov 9, 2023 · 0 comments

Comments

@mr-cal
Copy link
Contributor

mr-cal commented Nov 9, 2023

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 from @brlin-tw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant