Skip to content

Commit 8a09e6c

Browse files
mhaggergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6192940 commit 8a09e6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Documentation/technical/api-parse-options.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ The parse-options API allows:
4141
* Boolean long options can be 'negated' (or 'unset') by prepending
4242
`no-`, e.g. `--no-abbrev` instead of `--abbrev`. Conversely,
4343
options that begin with `no-` can be 'negated' by removing it.
44+
Other long options can be unset (e.g., set string to NULL, set
45+
integer to 0) by prepending `no-`.
4446

4547
* Options and non-option arguments can clearly be separated using the `--`
4648
option, e.g. `-a -b --option -- --this-is-a-file` indicates that

0 commit comments

Comments
 (0)