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

When I type wrong subcommand, both exception stack trace and nice answer is shown #586

Open
buzden opened this issue Jan 30, 2018 · 0 comments

Comments

@buzden
Copy link
Contributor

buzden commented Jan 30, 2018

Consider I forgot spelling of createBuild subcommand and I typed cbt tools help in a belief that it prints a list of possible subcommands.

This command actually leads to printing both a list of possible subcommands for the tools command and list of possible first-level commands. This is great!

But additionally, it prints an exception stack trace

Exception in thread "main" java.lang.RuntimeException:  no method `help` in
        at cbt.Lib$$anonfun$cbt$Lib$$callInternal$1$$anonfun$apply$9$$anonfun$apply$14.apply(Lib.scala:171)
        ...

I really believe, it is not the intended behaviour as soon as the system known all possible list of subcommands, is it?

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