Update Release Notes to 1.6.5
[gitweb.git] / parse-options.c
index 3b71fbb5410332a3f11ca0e450a614b3345a687b..a64a4d6ee267cf2a691f546f668f3f644616408c 100644 (file)
@@ -549,6 +549,14 @@ void usage_with_options(const char * const *usagestr,
        exit(129);
 }
 
+void usage_msg_opt(const char *msg,
+                  const char * const *usagestr,
+                  const struct option *options)
+{
+       fprintf(stderr, "%s\n\n", msg);
+       usage_with_options(usagestr, options);
+}
+
 int parse_options_usage(const char * const *usagestr,
                        const struct option *opts)
 {