Beispiel #1
0
 internal static IArgumentLayer Option(this IArgumentLayer target, char shortName, string longName, Action <IArgumentBuilder> builder) => target.AddOption(e => e.SetShortName(shortName).SetLongName(longName).Argument(builder));
Beispiel #2
0
 internal static IArgumentLayer Argument(this IArgumentLayer target, string name) => target.AddArgument(e => e.SetName(name));
Beispiel #3
0
 internal static IArgumentLayer Option(this IArgumentLayer target, char shortName, string longName) => target.AddOption(e => e.SetShortName(shortName).SetLongName(longName));
Beispiel #4
0
 internal static IArgumentLayer Command(this IArgumentLayer target, string name, string description) => target.AddCommand(e => e.Name(name).Description(description));
Beispiel #5
0
 internal static IArgumentLayer Command(this IArgumentLayer target, string name) => target.AddCommand(e => e.Name(name));
Beispiel #6
0
 internal static IArgumentLayer Argument(this IArgumentLayer target, string name, string description, bool optional) => optional?target.AddArgument(e => e.SetName(name).Description(description).Optional()) : target.Argument(name, description);
Beispiel #7
0
 internal static IArgumentLayer Argument(this IArgumentLayer target, string name, string description) => target.AddArgument(e => e.SetName(name).Description(description));