]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/git-rev-parse.txt
rev-parse --parseopt: option argument name hints
authorIlya Bobyr <ilya.bobyr@gmail.com>
Sat, 22 Mar 2014 09:47:34 +0000 (02:47 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Mar 2014 00:28:03 +0000 (17:28 -0700)
commit9bab5b6061f1bc8ca54f8ac145f4f88c644e3bc4
treeeaa52a5624ceb7be5177a4ffc2f809019865138b
parent3f09db07b3dc0758756fad73c96abd0e47cbcd1b
rev-parse --parseopt: option argument name hints

Built-in commands can specify names for option arguments when usage text
is generated for a command.  sh based commands should be able to do the
same.

Option argument name hint is any text that comes after [*=?!] after the
argument name up to the first whitespace.

Signed-off-by: Ilya Bobyr <ilya.bobyr@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rev-parse.txt
builtin/rev-parse.c
t/t1502-rev-parse-parseopt.sh