Пример #1
0
 public ExportCommand(Options options, CommandContext context)
 {
     _options = options.ExportCommand;
     if (_options.IsHelp)
     {
         _helpMessage = HelpTextGenerator.GetHelpMessage(options, "export");
     }
     else
     {
         options.MetadataCommand = _options;
         _metadataCommand = new MetadataCommand(options, context);
     }
 }
Пример #2
0
 public ExportCommand(Options options, CommandContext context)
 {
     _options = options.ExportCommand;
     if (_options.IsHelp)
     {
         _helpMessage = HelpTextGenerator.GetHelpMessage(options, "export");
     }
     else
     {
         options.MetadataCommand = _options;
         _metadataCommand        = new MetadataCommand(options, context);
     }
 }