Beispiel #1
0
        private static void SampleTwo(string[] args)
        {
            var argThings = new ArgsActions();
            argThings.SetOption("-a", () => Console.WriteLine("-a option selected"));
            argThings.SetOption("-e", () => Console.WriteLine("-e option selected"));

            var processor = new ArgsProcessor(argThings);
            processor.Process(args);
        }
Beispiel #2
0
 public ArgsProcessor(ArgsActions actions)
 {
     this.actions = actions;
 }
Beispiel #3
0
 public ArgsProcessor(ArgsActions actions)
 {
     this.actions = actions;
 }