1 include "llvm/Option/OptParser.td"
3 def OptFlag1 : OptionFlag;
4 def OptFlag2 : OptionFlag;
5 def OptFlag3 : OptionFlag;
7 def A : Flag<["-"], "A">, HelpText<"The A option">, Flags<[OptFlag1]>;
8 def B : Joined<["-"], "B">, HelpText<"The B option">, MetaVarName<"B">, Flags<[OptFlag2]>;
9 def C : Separate<["-"], "C">, HelpText<"The C option">, MetaVarName<"C">, Flags<[OptFlag1]>;
10 def SLASH_C : Separate<["/", "-"], "C">, HelpText<"The C option">, MetaVarName<"C">, Flags<[OptFlag3]>;
11 def D : CommaJoined<["-"], "D">, HelpText<"The D option">, MetaVarName<"D">;
12 def E : MultiArg<["-"], "E", 2>, Flags<[OptFlag1, OptFlag2]>;
13 def F : JoinedOrSeparate<["-"], "F">, HelpText<"The F option">, MetaVarName<"F">;
14 def G : JoinedAndSeparate<["-"], "G">, HelpText<"The G option">, MetaVarName<"G">;
16 def Ceq : Joined<["-", "--"], "C=">, Alias<C>, Flags<[OptFlag1]>;
18 def H : Flag<["-"], "H">, Flags<[HelpHidden]>;
20 def my_group : OptionGroup<"my group">;
21 def I : Flag<["-"], "I">, Alias<H>, Group<my_group>;
23 def J : Flag<["-"], "J">, Alias<B>, AliasArgs<["foo"]>;
24 def Joo : Flag<["-"], "Joo">, Alias<B>, AliasArgs<["bar"]>;
26 def K : Flag<["-"], "K">, Alias<B>;
28 def Slurp : Option<["-"], "slurp", KIND_REMAINING_ARGS>;
30 def SlurpJoined : Option<["-"], "slurpjoined", KIND_REMAINING_ARGS_JOINED>;
32 def Blorp : Flag<["-", "--"], "blorp">, HelpText<"The blorp option">, Flags<[OptFlag1]>;
33 def Blarn : Flag<["--", "-"], "blarn">, HelpText<"The blarn option">, Flags<[OptFlag1]>;
34 def Cramb : Joined<["/"], "cramb:">, HelpText<"The cramb option">, MetaVarName<"CRAMB">, Flags<[OptFlag1]>;
35 def Doopf1 : Flag<["-"], "doopf1">, HelpText<"The doopf1 option">, Flags<[OptFlag1]>;
36 def Doopf2 : Flag<["-"], "doopf2">, HelpText<"The doopf2 option">, Flags<[OptFlag2]>;
37 def Ermgh : Joined<["--"], "ermgh">, HelpText<"The ermgh option">, MetaVarName<"ERMGH">, Flags<[OptFlag1]>;
38 def Fjormp : Flag<["--"], "fjormp">, HelpText<"The fjormp option">, Flags<[OptFlag1]>;
40 def Glorrmp_eq : Flag<["--"], "glorrmp=">;
42 def Blurmpq : Flag<["--"], "blurmp">;
43 def Blurmpq_eq : Flag<["--"], "blurmp=">;
45 def DashDash : Option<["--"], "", KIND_REMAINING_ARGS>;