2012-12-05 01:29:32 +01:00
|
|
|
include "llvm/Option/OptParser.td"
|
|
|
|
|
2013-07-19 20:05:13 +02:00
|
|
|
def OptFlag1 : OptionFlag;
|
|
|
|
def OptFlag2 : OptionFlag;
|
|
|
|
def OptFlag3 : OptionFlag;
|
|
|
|
|
|
|
|
def A : Flag<["-"], "A">, HelpText<"The A option">, Flags<[OptFlag1]>;
|
|
|
|
def B : Joined<["-"], "B">, HelpText<"The B option">, MetaVarName<"B">, Flags<[OptFlag2]>;
|
|
|
|
def C : Separate<["-"], "C">, HelpText<"The C option">, MetaVarName<"C">, Flags<[OptFlag1]>;
|
|
|
|
def SLASH_C : Separate<["/", "-"], "C">, HelpText<"The C option">, MetaVarName<"C">, Flags<[OptFlag3]>;
|
2012-12-05 01:29:32 +01:00
|
|
|
def D : CommaJoined<["-"], "D">, HelpText<"The D option">, MetaVarName<"D">;
|
2013-07-19 20:05:13 +02:00
|
|
|
def E : MultiArg<["-"], "E", 2>, Flags<[OptFlag1, OptFlag2]>;
|
2012-12-05 01:29:32 +01:00
|
|
|
def F : JoinedOrSeparate<["-"], "F">, HelpText<"The F option">, MetaVarName<"F">;
|
|
|
|
def G : JoinedAndSeparate<["-"], "G">, HelpText<"The G option">, MetaVarName<"G">;
|
|
|
|
|
2013-07-19 20:05:13 +02:00
|
|
|
def Ceq : Joined<["-", "--"], "C=">, Alias<C>, Flags<[OptFlag1]>;
|
2012-12-05 01:29:32 +01:00
|
|
|
|
|
|
|
def H : Flag<["-"], "H">, Flags<[HelpHidden]>;
|
2013-07-22 18:18:13 +02:00
|
|
|
|
|
|
|
def my_group : OptionGroup<"my group">;
|
|
|
|
def I : Flag<["-"], "I">, Alias<H>, Group<my_group>;
|
2013-08-01 00:44:41 +02:00
|
|
|
|
|
|
|
def J : Flag<["-"], "J">, Alias<B>, AliasArgs<["foo"]>;
|
|
|
|
def Joo : Flag<["-"], "Joo">, Alias<B>, AliasArgs<["bar"]>;
|
2013-08-13 23:09:50 +02:00
|
|
|
|
2015-05-04 20:00:13 +02:00
|
|
|
def K : Flag<["-"], "K">, Alias<B>;
|
|
|
|
|
2013-08-13 23:09:50 +02:00
|
|
|
def Slurp : Option<["-"], "slurp", KIND_REMAINING_ARGS>;
|
2016-04-15 02:23:30 +02:00
|
|
|
|
|
|
|
def SlurpJoined : Option<["-"], "slurpjoined", KIND_REMAINING_ARGS_JOINED>;
|