blob: 9792aa582cbbb48627a89bc5aef1af0f10df2330 [file] [log] [blame]
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +00001include "llvm/Option/OptParser.td"
2
3// All the switches can be preceded by either '/' or '-'.
4// These options seem to be important for the tool
5// and should be implemented.
6
7def FILEOUT : Separate<[ "/", "-" ], "FO">,
8 HelpText<"Change the output file location.">;
9
10def DEFINE : Separate<[ "/", "-" ], "D">,
11 HelpText<"Define a symbol for the C preprocessor.">;
12def UNDEF : Separate<[ "/", "-" ], "U">,
13 HelpText<"Undefine a symbol for the C preprocessor.">;
14
15def LANG_ID : Separate<[ "/", "-" ], "L">,
16 HelpText<"Set the default language identifier.">;
17def LANG_NAME : Separate<[ "/", "-" ], "LN">,
18 HelpText<"Set the default language name.">;
19
20def INCLUDE : Separate<[ "/", "-" ], "I">, HelpText<"Add an include path.">;
21def NOINCLUDE : Flag<[ "/", "-" ], "X">, HelpText<"Ignore 'include' variable.">;
22
23def ADD_NULL : Flag<[ "/", "-" ], "N">,
24 HelpText<"Null-terminate all strings in the string table.">;
25
26def DUPID_NOWARN : Flag<[ "/", "-" ], "Y">,
27 HelpText<"Suppress warnings on duplicate resource IDs.">;
28
29def VERBOSE : Flag<[ "/", "-" ], "V">, HelpText<"Be verbose.">;
30def HELP : Flag<[ "/", "-" ], "?">, HelpText<"Display this help and exit.">;
31def H : Flag<[ "/", "-" ], "H">,
32 Alias<HELP>,
33 HelpText<"Display this help and exit.">;
34
Marek Sokolowski8f193432017-09-29 17:14:09 +000035def DRY_RUN : Flag<[ "/", "-" ], "dry-run">,
36 HelpText<"Don't compile the input; only try to parse it.">;
37
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +000038// Unused switches (at least for now). These will stay unimplemented
39// in an early stage of development and can be ignored. However, we need to
40// parse them in order to preserve the compatibility with the original tool.
41
42def NOLOGO : Flag<[ "/", "-" ], "NOLOGO">;
43def R : Flag<[ "/", "-" ], "R">;
44def SL : Flag<[ "/", "-" ], "SL">;
45
46// (Codepages support.)
47def C : Flag<[ "/", "-" ], "C">;
48def W : Flag<[ "/", "-" ], "W">;
49
50// (Support of MUI and similar.)
51def FM : Separate<[ "/", "-" ], "FM">;
52def Q : Separate<[ "/", "-" ], "Q">;
53def G : Flag<[ "/", "-" ], "G">;
54def GN : Flag<[ "/", "-" ], "GN">;
55def G1 : Flag<[ "/", "-" ], "G1">;
56def G2 : Flag<[ "/", "-" ], "G2">;