l3nz / cli-matic

Compact, hands-free [sub]command line parsing library for Clojure.
Eclipse Public License 2.0
361 stars 29 forks source link

Do global options really need to be required? #35

Closed jwhitlark closed 4 years ago

jwhitlark commented 5 years ago

Can just specify it as empty, but it can take a few minutes to figure out what the problem is, especially for those less familiar with spec.

l3nz commented 5 years ago

Makes sense to leave them out where not needed.

l3nz commented 5 years ago

While we work on that, if the are missing or empty, it makes no sense to print them out:

USAGE:
 eml [global-options] command [command options] [arguments...]

but

USAGE:
 eml  command [command options] [arguments...]
thiru commented 5 years ago

It's common for terminal apps to be called like app --version to print the version. Is this possible?

l3nz commented 4 years ago

So closed in 0.3.9