Last Update 2020/10/26
--help= ,(コンマ)
指定されたクラスおよび修飾子に合致するコマンドラインオプションの説明を、標準出力へ出力
指定可能な記号 ,(コンマ) : 複数のクラス、修飾子を指定
指定可能な記号 ,(コンマ) : 複数のクラス、修飾子を指定
テスト概要
コマンド「gcc --help=common,joined,^undocumented」の実行
実行環境
GCC-8.2.0
GNU C Library 2.28
GNU Binutils 2.31.1
GNU C Library 2.28
GNU Binutils 2.31.1
コード例・出力内容中の表記
・実行例中の太字表記部分は、コマンドなどの入力された文字列を示します。
・「︙」や「...」の着色省略表記は、 実際のソースコードや出力内容などを省略加工した部分を示します。
・「︙」や「...」の着色省略表記は、 実際のソースコードや出力内容などを省略加工した部分を示します。
実行結果
$ gcc --help=common,joined,^undocumented commonに該当するオプションの内、
joinedに該当するオプションと、undocumentedに該当しないオプションを表示
コンマを使いクラス、修飾子を列挙
The following options are language-independent:
--help=<class> Display descriptions of a specific class of options. <class> is one or more of optimizers, target, warnings,
undocumented, params.
-O<number> Set optimization level to <number>.
-Warray-bounds=<0,2> Warn if an array is accessed out of bounds.
-Werror= Treat specified warning as error.
-Wframe-larger-than=<number> Warn if a function's stack frame requires more than <number> bytes.
-Wimplicit-fallthrough=<0,5> Warn when a switch case falls through.
︙
-gxcoff Generate debug information in XCOFF format.
-gxcoff+ Generate debug information in extended XCOFF format.
-gz=<format> Generate compressed debug sections in format <format>.
-imultiarch <dir> Set <dir> to be the multiarch include subdirectory.
-iplugindir=<dir> Set <dir> to be the default plugin directory.
-o <file> Place output into <file>.
$