From fd03881a48fc31197ab3343ac2f02ed0cdbbbaaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Mon, 8 Nov 2010 18:56:39 +0100 Subject: add description parameter to OPT__VERBOSE Allows better help text to be defined than "be verbose". Also make use of the macro in places that already had a different description. No object code changes intended. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- test-parse-options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-parse-options.c') diff --git a/test-parse-options.c b/test-parse-options.c index acd1a2ba70..bd7b8a4ea8 100644 --- a/test-parse-options.c +++ b/test-parse-options.c @@ -66,7 +66,7 @@ int main(int argc, const char **argv) "negative ambiguity", PARSE_OPT_NOARG | PARSE_OPT_NONEG }, OPT_GROUP("Standard options"), OPT__ABBREV(&abbrev), - OPT__VERBOSE(&verbose), + OPT__VERBOSE(&verbose, "be verbose"), OPT__DRY_RUN(&dry_run), OPT__QUIET(&quiet), OPT_END(), -- cgit v1.2.3 From e21adb8c100cd2859cff1d74f7d0e622ac640085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Mon, 8 Nov 2010 18:58:51 +0100 Subject: add description parameter to OPT__DRY_RUN Allows better help text to be defined than "dry run". Also make use of the macro in places that already had a different description. No object code changes intended. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- test-parse-options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-parse-options.c') diff --git a/test-parse-options.c b/test-parse-options.c index bd7b8a4ea8..cddd10643f 100644 --- a/test-parse-options.c +++ b/test-parse-options.c @@ -67,7 +67,7 @@ int main(int argc, const char **argv) OPT_GROUP("Standard options"), OPT__ABBREV(&abbrev), OPT__VERBOSE(&verbose, "be verbose"), - OPT__DRY_RUN(&dry_run), + OPT__DRY_RUN(&dry_run, "dry run"), OPT__QUIET(&quiet), OPT_END(), }; -- cgit v1.2.3 From d52ee6e6131f65bb4360743ebea2e7b400b544e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Mon, 8 Nov 2010 19:06:54 +0100 Subject: add description parameter to OPT__QUIET Allows better help text to be defined than "be quiet". Also make use of the macro in a place that already had a different description. No object code changes intended. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- test-parse-options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-parse-options.c') diff --git a/test-parse-options.c b/test-parse-options.c index cddd10643f..0828592162 100644 --- a/test-parse-options.c +++ b/test-parse-options.c @@ -68,7 +68,7 @@ int main(int argc, const char **argv) OPT__ABBREV(&abbrev), OPT__VERBOSE(&verbose, "be verbose"), OPT__DRY_RUN(&dry_run, "dry run"), - OPT__QUIET(&quiet), + OPT__QUIET(&quiet, "be quiet"), OPT_END(), }; int i; -- cgit v1.2.3 From 41dbcd45409b2986c011e67dd9e2b4d3072fc88d Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Tue, 15 Feb 2011 14:09:13 +0100 Subject: Make lowercase as per CodingGuidelines *.c part for matches with '<[A-Z]+>' (and affected test). Signed-off-by: Michael J Gruber Signed-off-by: Junio C Hamano --- test-parse-options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test-parse-options.c') diff --git a/test-parse-options.c b/test-parse-options.c index 0828592162..4e3710b9a8 100644 --- a/test-parse-options.c +++ b/test-parse-options.c @@ -46,7 +46,7 @@ int main(int argc, const char **argv) OPT_DATE('t', NULL, ×tamp, "get timestamp of