[PATCH] Fix import-commit command line options check
commit6cc174d023d05e8be09d7d712f81db71e3c79a02
authorGermano Percossi <germano.percossi@citrix.com>
Thu, 27 Jul 2017 15:47:04 +0000 (27 16:47 +0100)
committerJosef 'Jeff' Sipek <jeffpc@josefsipek.net>
Sat, 12 Aug 2017 09:16:41 +0000 (12 12:16 +0300)
treeeba591714b78118ca62a3d8b5e696d0342368695
parentac661a195eb3e94e0480ca08b05b4739713f2fbb
[PATCH] Fix import-commit command line options check

Now usage if finally shown and we do not try to run git rev-list
if the options are not the right ones.
Previous check was based just on the number of arguments on
the command line, hence "-h" was treated as something to
feed git with.

Signed-off-by: Germano Percossi <germano.percossi@citrix.com>
[jeffpc: collapse -h and --help into a single case]
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
guilt-import-commit