]> gitweb.michael.orlitzky.com - valtz.git/commit
Show only a usage summary when -h is passed.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 21 Oct 2020 18:11:14 +0000 (14:11 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 21 Oct 2020 18:11:14 +0000 (14:11 -0400)
commitf54a7004818905702fdcac7b69e9795a3ea67ce4
tree82c9bb393e622ff94d9c0eaf981615ec9e54b5e0
parent086fabfe9c5251d08184706567415b3751894716
Show only a usage summary when -h is passed.

There was a long "usage" string contained within the program itself
that is now contained within the man page. The long usage would be
shown with "valtz -h", and a shorter one would be shown with simply
"valtz", which is an error by itself. This commit also unifies those
two: if you try to run valtz with no arguments, the "valtz -h" output
is shown but the exit code will be non-zero.
valtz
valtz.1