diff options
author | Ben Keene <seraphire@gmail.com> | 2019-12-16 14:02:20 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-16 12:32:13 -0800 |
commit | 608e380502f754b50ead6c7e6c3f5ff5ee8eca33 (patch) | |
tree | 766efdaac3ea7e8a0c4292a3d53c04c9c2606727 /builtin/commit-graph.c | |
parent | git-p4: yes/no prompts should sanitize user text (diff) | |
download | tgif-608e380502f754b50ead6c7e6c3f5ff5ee8eca33.tar.xz |
git-p4: show detailed help when parsing options fail
When a user provides invalid parameters to git-p4, the program
reports the failure but does not provide the correct command syntax.
Add an exception handler to the command-line argument parser to display
the command's specific command line parameter syntax when an exception
is thrown. Rethrow the exception so the current behavior is retained.
Signed-off-by: Ben Keene <seraphire@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions