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

Consider outputting help for a specific context when command is empty #16

Open
filippsen opened this issue Apr 5, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@filippsen
Copy link
Member

Given the following command:

sns CONTEXT

Current output:

[ERROR] Unknown <CONTEXT> command ''

Suggested output:

Usage:
help
-h
    Output this help

version
-V
    Output the version of Simplenetes

sns CONTEXT COMMAND [OBJECT] [OPTIONS] [ARGUMENTS]

Cluster commands:
  cluster create <cluster name>
[...]

Host commands:
  host register <host>
[...]


Pod commands:
  pod ls [[pod[:version]][@host]]
[...]

Or just that particular help usage. Example:

sns host

Targetted output:

sns host COMMAND [OBJECT] [OPTIONS] [ARGUMENTS]

Host commands:
  host register <host>
[...]

Could also consider applying the same to invalid commands, but that is more understandable as it is (in comparison to the case of empty commands).
Invalid command:

sns CONTEXT invalid

Current output:

[ERROR] Unknown <CONTEXT> command 'invalid'
@filippsen filippsen added the enhancement New feature or request label Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant