parse-options: make sure argh string does not have SP or _
commitb6c2a0d45d4165dfd326bd7a28e66d9cedb8ae84
authorJunio C Hamano <gitster@pobox.com>
Sun, 23 Mar 2014 23:04:36 +0000 (23 16:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Mar 2014 17:43:35 +0000 (24 10:43 -0700)
tree9459835f28a86ebc75b876473885e377a286a448
parentec160ae12b0ae938ed5076b9f604e88976fc429c
parse-options: make sure argh string does not have SP or _

We encourage to spell an argument hint that consists of multiple
words as a single-token separated with dashes.  In order to help
catching violations added by new callers of parse-options, make sure
argh does not contain SP or _ when the code validates the option
definitions.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c