conjure
conjure copied to clipboard
CLI: improve default output
Invoking the CLI with no arguments results in a stack trace:
➜ bin ./conjure
Exception in thread "main" java.lang.IllegalArgumentException: Usage: conjure compile <target> <output>
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:134)
at com.palantir.conjure.cli.ConjureCli.parseCliConfiguration(ConjureCli.java:51)
at com.palantir.conjure.cli.ConjureCli.main(ConjureCli.java:40)
This output is not very friendly from a usability perspective -- would be nicer if this output was just the error message ("Usage: conjure compile
Agreed this should be improved!
As part of this, the default output should likely include help -- for example, would have been nice to know things like the fact that <target> can be a file or a directory while <output> must be a path to a file (cannot be a directory)