From: Michael Haggerty Date: Thu, 18 Apr 2013 07:46:35 +0000 (+0200) Subject: api-parse-options.txt: document "no-" for non-boolean options X-Git-Tag: v1.8.4-rc0~254^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8a09e6c5f9010ac7159ef39a03b9a36bf233eaca?ds=sidebyside api-parse-options.txt: document "no-" for non-boolean options Document that the "no-" prefix can also be used for non-boolean options. Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- diff --git a/Documentation/technical/api-parse-options.txt b/Documentation/technical/api-parse-options.txt index 3062389404..facc8c8c49 100644 --- a/Documentation/technical/api-parse-options.txt +++ b/Documentation/technical/api-parse-options.txt @@ -41,6 +41,8 @@ The parse-options API allows: * Boolean long options can be 'negated' (or 'unset') by prepending `no-`, e.g. `--no-abbrev` instead of `--abbrev`. Conversely, options that begin with `no-` can be 'negated' by removing it. + Other long options can be unset (e.g., set string to NULL, set + integer to 0) by prepending `no-`. * Options and non-option arguments can clearly be separated using the `--` option, e.g. `-a -b --option -- --this-is-a-file` indicates that