Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Show help and exit on invalid command. #191

Merged
merged 12 commits into from
Apr 25, 2017

Conversation

whilei
Copy link
Contributor

@whilei whilei commented Apr 20, 2017

Show help, exit code 3 (congruent to cli package) if geth receives an unknown command, ie geth verison.

I'm not sure why urfave/cli does catch unknown --flags, but doesn't catch unknown commands. In that light, I consider this a patch.

Fixes #190

solution: create cli.App.CommandNotFound method and manually check against existing commands (patch)
fixes ethereumproject#190
@whilei whilei merged commit 7d6d6e3 into ethereumproject:master Apr 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants