Exemple #1
0
 void Run(string[] args)
 {
     //TestMode();
     //return;
     Console.OutputEncoding = Encoding.ASCII;
     var cmd = new CmdLineHelper();
     _runner = new PyRunner(cmd.ParamAfterSwitch("command"),
         cmd.ParamAfterSwitch("script"),
         cmd.ParamAfterSwitch("args"),
         cmd.ParamAfterSwitch("workingDirectory"), cmd);
     _runner.Run();
     //Console.ReadKey();
 }
 private void GetParams(IEnumerable<string> args)
 {
     _cmd = new CmdLineHelper();
     _cmd.Parse(args);
     _processName = _cmd.ParamAfterSwitch("ProcessName");
     _scriptFile = _cmd.ParamAfterSwitch("ScriptFile");
     _code = _cmd.ParamAfterSwitch("Code");
 }