1include "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 : JoinedOrSeparate<[ "/", "-" ], "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 : JoinedOrSeparate<[ "/", "-" ], "L">,
16              HelpText<"Set the default language identifier.">;
17def lang_name : Separate<[ "/", "-" ], "LN">,
18                HelpText<"Set the default language name.">;
19
20def includepath : 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
35def dry_run : Flag<[ "/", "-" ], "dry-run">,
36              HelpText<"Don't compile the input; only try to parse it.">;
37
38def codepage : JoinedOrSeparate<[ "/", "-" ], "C">,
39               HelpText<"Set the codepage used for input strings.">;
40
41// Unused switches (at least for now). These will stay unimplemented
42// in an early stage of development and can be ignored. However, we need to
43// parse them in order to preserve the compatibility with the original tool.
44
45def nologo : Flag<[ "/", "-" ], "NOLOGO">;
46def r : Flag<[ "/", "-" ], "R">;
47def sl : Flag<[ "/", "-" ], "SL">;
48
49// (Codepages support.)
50def w : Flag<[ "/", "-" ], "W">;
51
52// (Support of MUI and similar.)
53def fm : Separate<[ "/", "-" ], "FM">;
54def q : Separate<[ "/", "-" ], "Q">;
55def g : Flag<[ "/", "-" ], "G">;
56def gn : Flag<[ "/", "-" ], "GN">;
57def g1 : Flag<[ "/", "-" ], "G1">;
58def g2 : Flag<[ "/", "-" ], "G2">;
59