Lines Matching +full:mutually +full:- +full:exclusive
2 # SPDX-License-Identifier: GPL-2.0
7 # NOTE: While kernel-doc requires at least version 3.6 to run, the
11 # - encoding line is needed here;
12 # - no f-strings can be used on this file.
13 # - the libraries that require newer versions can only be included
16 # Converted from the kernel-doc script originally written in Perl
25 # Anna-Maria Behnsen <anna-maria@linutronix.de>
30 # Chen-Yu Tsai <wenst@chromium.org>
38 # Greg Kroah-Hartman <gregkh@linuxfoundation.org>
56 # Linus Torvalds <torvalds@linux-foundation.org>
73 # Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
77 # Rolf Eike Beer <eike-kernel@sf-tec.de>
103 See Documentation/doc-guide/kernel-doc.rst for the
125 See Documentation/doc-guide/kernel-doc.rst for the documentation comment syntax.
137 FILE or -export-file FILE.
143 FILE or -export-file FILE.
166 This option is kept just for backward-compatibility, but it does nothing,
172 """Helper class to format warnings on a similar way to kernel-doc.pl"""
186 parser.add_argument("-v", "-verbose", "--verbose", action="store_true",
189 parser.add_argument("-d", "-debug", "--debug", action="store_true",
192 parser.add_argument("-M", "-modulename", "--modulename",
196 parser.add_argument("-l", "-enable-lineno", "--enable_lineno",
202 parser.add_argument("-Wreturn", "--wreturn", action="store_true",
205 parser.add_argument("-Wshort-desc", "-Wshort-description", "--wshort-desc",
209 parser.add_argument("-Wcontents-before-sections",
210 "--wcontents-before-sections", action="store_true",
213 parser.add_argument("-Wall", "--wall", action="store_true",
216 parser.add_argument("-Werror", "--werror", action="store_true",
219 parser.add_argument("-export-file", "--export-file", action='append',
222 # Output format mutually-exclusive group
224 out_group = parser.add_argument_group("Output format selection (mutually exclusive)")
228 out_fmt.add_argument("-m", "-man", "--man", action="store_true",
230 out_fmt.add_argument("-r", "-rst", "--rst", action="store_true",
232 out_fmt.add_argument("-N", "-none", "--none", action="store_true",
235 # Output selection mutually-exclusive group
237 sel_group = parser.add_argument_group("Output selection (mutually exclusive)")
240 sel_mut.add_argument("-e", "-export", "--export", action='store_true',
243 sel_mut.add_argument("-i", "-internal", "--internal", action='store_true',
246 sel_mut.add_argument("-s", "-function", "--symbol", action='append',
250 parser.add_argument("-n", "-nosymbol", "--nosymbol", action='append',
253 parser.add_argument("-D", "-no-doc-sections", "--no-doc-sections",
282 # Depending on Kernel configuration, kernel-doc --none is called at
286 logger.error("Python 3.6 or later is required by kernel-doc. skipping checks")
289 sys.exit("Python 3.6 or later is required by kernel-doc. Aborting.")
294 # Import kernel-doc libraries only after checking Python version