l3nz / cli-matic

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

[Ftr] Ability to *disable* -? gloabl help #158

Closed mtwomey closed 1 year ago

mtwomey commented 1 year ago

The '-?' version of help doesn't work on mac in zsh without escaping it:

-? returns zsh: no matches found: -?

-\? works correctly. I'd prefer to just have the whole global help line disabled:

-?, --help

Is this possible?

As a follow-on to this, if GLOBAL OPTIONS: is now empty (because there were no other options), it should also not be displayed.

l3nz commented 1 year ago

Not sure how you could do that selectively based on zsh - because -h could be a "native" option (-h 127.0.0.1) so we cannot just use that.

I have a mac too and I feel your pain. I love zsh but -? drives me nuts.