Пример #1
0
 static CmdLine()
 {
     // setup our supported list of cmdline switches
     mySupportedSwitches = CmdLineSwitches.Init(
         CustomSwitch.Build(SwitchNames.Profile),
         CustomSwitch.Build(SwitchNames.Username),
         CustomSwitch.Build(SwitchNames.Password),
         CustomSwitch.Build(SwitchNames.Install, a => a.Add("install")),
         CustomSwitch.Build(SwitchNames.Uninstall, a => a.Add("uninstall")));
 }
Пример #2
0
 public void IfSupplied(CmdLineSwitches switches, Action <CustomSwitch> switchAction)
 {
     switches.Intersect(this).ForEach(switchAction);
 }