summaryrefslogtreecommitdiff
path: root/Documentation/technical
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2013-04-18 07:46:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-18 16:30:28 (GMT)
commit8a09e6c5f9010ac7159ef39a03b9a36bf233eaca (patch)
tree67ca0152b1d2e6c62c235ad4bb0d6cbfc4b4bdeb /Documentation/technical
parent61929404df24325b8bebedbd70d55d21142de9dd (diff)
downloadgit-8a09e6c5f9010ac7159ef39a03b9a36bf233eaca.zip
git-8a09e6c5f9010ac7159ef39a03b9a36bf233eaca.tar.gz
git-8a09e6c5f9010ac7159ef39a03b9a36bf233eaca.tar.bz2
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 <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical')
-rw-r--r--Documentation/technical/api-parse-options.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/technical/api-parse-options.txt b/Documentation/technical/api-parse-options.txt
index 3062389..facc8c8 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