コード例 #1
0
 private static bool ReadOptions(string[] args)
 {
     try
     {
         opt = new ElaOptions();
         ConfigReader.ReadOptions(opt);
         var clp = new CommandLineParser(opt);
         clp.Parse(args);
         return(true);
     }
     catch (ElaOptionException ex)
     {
         helper = new MessageHelper(null);
         helper.PrintInvalidOption(ex);
         return(false);
     }
 }
コード例 #2
0
ファイル: InteractiveCommands.cs プロジェクト: ngoffee/ela
 internal InteractiveCommands(ElaMachine machine, MessageHelper helper, ElaOptions opts)
 {
     this.machine = machine;
     this.helper  = helper;
     this.opts    = opts;
 }
コード例 #3
0
ファイル: MessageHelper.cs プロジェクト: ngoffee/ela
 internal MessageHelper(ElaOptions opt)
 {
     this.opt = opt;
 }