]> Sergey Matveev's repositories - public-inbox.git/commit
script/*: fold $usage into $help, support `-h' instead of -?
authorEric Wong <e@80x24.org>
Tue, 1 Sep 2020 01:15:01 +0000 (01:15 +0000)
committerEric Wong <e@80x24.org>
Wed, 2 Sep 2020 08:53:55 +0000 (08:53 +0000)
commit16870b42ac68a8704467989cb20c2c571e4749ab
treeabc78c7ad8e939044909f66a64e8c2fb5fa1cd58
parent6accd690b16aa0bce7117286944d69f378611eb8
script/*: fold $usage into $help, support `-h' instead of -?

`-h' doesn't conflict with anything, and some users (including
git users) may be more accustomed to using it rather than the
rarely-seen-outside-of-Getopt::Long `-?' switch.

We can also rely on the GetOptions() function to emit a proper
error message instead of just "bad command-line args".
script/public-inbox-compact
script/public-inbox-convert
script/public-inbox-index
script/public-inbox-init
script/public-inbox-xcpdb