]> git.ipfire.org Git - thirdparty/git.git/commitdiff
column, range-diff: downcase option description
authorChinmoy Chakraborty <chinmoy12c@gmail.com>
Mon, 29 Mar 2021 14:46:34 +0000 (14:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Mar 2021 21:06:08 +0000 (14:06 -0700)
It is customary not to begin the help text for each option given to
the parse-options API with a capital letter. Various (sub)commands'
option arrays don't follow the guideline provided by the parse_options
Documentation regarding the descriptions.

Downcase the first word of some option descriptions for "column"
and "range-diff".

Signed-off-by: Chinmoy Chakraborty <chinmoy12c@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/column.c
builtin/range-diff.c

index e815e148aa18364c198eef0ee5c2ed4e34ae77e9..40d4b3bee2dd8e7e20b2d0ecc289837a0458c771 100644 (file)
@@ -27,10 +27,10 @@ int cmd_column(int argc, const char **argv, const char *prefix)
                OPT_STRING(0, "command", &real_command, N_("name"), N_("lookup config vars")),
                OPT_COLUMN(0, "mode", &colopts, N_("layout to use")),
                OPT_INTEGER(0, "raw-mode", &colopts, N_("layout to use")),
-               OPT_INTEGER(0, "width", &copts.width, N_("Maximum width")),
-               OPT_STRING(0, "indent", &copts.indent, N_("string"), N_("Padding space on left border")),
-               OPT_INTEGER(0, "nl", &copts.nl, N_("Padding space on right border")),
-               OPT_INTEGER(0, "padding", &copts.padding, N_("Padding space between columns")),
+               OPT_INTEGER(0, "width", &copts.width, N_("maximum width")),
+               OPT_STRING(0, "indent", &copts.indent, N_("string"), N_("padding space on left border")),
+               OPT_INTEGER(0, "nl", &copts.nl, N_("padding space on right border")),
+               OPT_INTEGER(0, "padding", &copts.padding, N_("padding space between columns")),
                OPT_END()
        };
 
index 78bc9fa770624adc3d08857d1b5004e500ead2cb..50318849d657ea298ae8984decdc2ae870a62741 100644 (file)
@@ -25,7 +25,7 @@ int cmd_range_diff(int argc, const char **argv, const char *prefix)
        struct option range_diff_options[] = {
                OPT_INTEGER(0, "creation-factor",
                            &range_diff_opts.creation_factor,
-                           N_("Percentage by which creation is weighted")),
+                           N_("percentage by which creation is weighted")),
                OPT_BOOL(0, "no-dual-color", &simple_color,
                            N_("use simple diff colors")),
                OPT_PASSTHRU_ARGV(0, "notes", &other_arg,