From: Christian Couder Date: Mon, 2 Feb 2009 05:12:58 +0000 (+0100) Subject: parse-options: add new function "usage_msg_opt" X-Git-Tag: v1.6.5-rc0~52^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/451bb210f81c10b60bf90403c9183be26beaaabf?hp=451bb210f81c10b60bf90403c9183be26beaaabf 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 Signed-off-by: Junio C Hamano ---