Skip to content

cli: Warn if unknown sub-command passed to identities - #519

Merged
zolia merged 2 commits into
mysteriumnetwork:masterfrom
tcharding:cli-identities
Nov 8, 2018
Merged

cli: Warn if unknown sub-command passed to identities#519
zolia merged 2 commits into
mysteriumnetwork:masterfrom
tcharding:cli-identities

Conversation

@tcharding

Copy link
Copy Markdown
Contributor

Currently if a user passes an unknown sub-command to the identities
command we fail silently. We check for zero args and provide usage, we
might as well check for incorrect args and provide usage also. This
gives us identities help for free.

Add check on the sub command for identities and print usage string if
incorrect.

Signed-off-by: tcharding me@tobin.cc

Currently if a user passes an unknown sub-command to the `identities`
command we fail silently.  We check for zero args and provide usage, we
might as well check for incorrect args and provide usage also.  This
gives us `identities help` for free.

Add check on the sub command for `identities` and print usage string if
incorrect.

Signed-off-by: tcharding <me@tobin.cc>

@soffokl soffokl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@zolia
zolia merged commit 4df62c7 into mysteriumnetwork:master Nov 8, 2018
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

Successfully merging this pull request may close these issues.

4 participants