Пример #1
0
 public OptionsParser()
 {
     _options = new DeployerOptionSet();
     _options.Add("h|help", "show help", o => _options.ShowHelp = o != null);
     _options.Add("i|install=", "install survey from specified filder", o => {
         _options.Path = o;
         _options.Type = DeployerOptionSet.SetType.Install;
     });
     _options.Add("u|update=", "update survey from specified filder", o => {
         _options.Path = o;
         _options.Type = DeployerOptionSet.SetType.Update;
     });
     _options.Add("n|name=", "the name of survey uri", o => {
         _options.Uri = o.ToUpperInvariant();
     });
     _options.Add("m|updateMode=", "update mode [1=Update only bins, 2=Update only AppData, 3=Update all except configs (web.config, etc.), 4=Update all]", o => {
         _options.Mode = o;
     });
     _options.Add("d|directory=", "the name of survey folder", o => _options.Directory = o.ToUpperInvariant());
     _options.Add("b|database=", "the nama of survey database", o => _options.Database = o.ToUpperInvariant());
 }
Пример #2
0
 public OptionsParser()
 {
     _options = new DeployerOptionSet();
     _options.Add("h|help", "show help", o => _options.ShowHelp = o != null);
     _options.Add("i|install=", "install survey from specified filder", o => {
         _options.Path = o;
         _options.Type = DeployerOptionSet.SetType.Install;
     });
     _options.Add("u|update=", "update survey from specified filder", o => {
         _options.Path = o;
         _options.Type = DeployerOptionSet.SetType.Update;
     });
     _options.Add("n|name=", "the name of survey uri", o => {
         _options.Uri = o.ToUpperInvariant();
     });
     _options.Add("m|updateMode=", "update mode [1=Update only bins, 2=Update only AppData, 3=Update all except configs (web.config, etc.), 4=Update all]", o => {
         _options.Mode = o;
     });
     _options.Add("d|directory=", "the name of survey folder", o => _options.Directory = o.ToUpperInvariant());
     _options.Add("b|database=", "the nama of survey database", o => _options.Database = o.ToUpperInvariant());
 }