提交 b1312bfe 编写于 作者: B Brian Norris 提交者: Linus Torvalds

get_maintainer: add --no-foo options to --help

Many flag options are boolean and support both a positive and a negative
invocation from the command line.  Some of these are even mentioned by
example (e.g., --nogit is mentioned as a default option), but they aren't
explicitly mentioned in the list of options.  It happens that some of
these are pretty important, as they are default-on, and to turn them off,
you have to know about the --no-foo version.

Rather than clutter the whole help text with bracketed '--[no]foo', let's
just mention the general rule, a la 'man gcc'.
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 cc7ff0ef
...@@ -845,6 +845,9 @@ Notes: ...@@ -845,6 +845,9 @@ Notes:
Entries in this file can be any command line argument. Entries in this file can be any command line argument.
This file is prepended to any additional command line arguments. This file is prepended to any additional command line arguments.
Multiple lines and # comments are allowed. Multiple lines and # comments are allowed.
Most options have both positive and negative forms.
The negative forms for --<foo> are --no<foo> and --no-<foo>.
EOT EOT
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册