8000 When I type wrong subcommand, both exception stack trace and nice answer is shown · Issue #586 · cvogt/cbt · GitHub
[go: up one dir, main page]

Skip to content

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

Open

Description

@buzden

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0