diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2009-02-02 06:12:58 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-31 17:03:40 -0700 |
commit | 451bb210f81c10b60bf90403c9183be26beaaabf (patch) | |
tree | 7f65acf1d82dac05446baea45684349cfaa3874a /Documentation/RelNotes-1.5.0.4.txt | |
parent | builtin-replace: teach "git replace" to actually replace (diff) | |
download | tgif-451bb210f81c10b60bf90403c9183be26beaaabf.tar.xz |
parse-options: add new function "usage_msg_opt"
This function can be used instead of "usage_with_options" when you
want to print an error message before the usage string.
It may be useful because:
if (condition)
usage_msg_opt("condition is false", usage, opts);
is shorter than:
if (condition) {
fprintf(stderr, "condition is false\n\n");
usage_with_options(usage, opts);
}
and may be more consistent.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes-1.5.0.4.txt')
0 files changed, 0 insertions, 0 deletions