Пример #1
0
 public override void Configure(CommandLineApplication command)
 {
     _app = command;
     command.Description = "Search for Box users.";
     _userName           = command.Argument("userName",
                                            "Name of user to search for");
     _managedUsers = ManagedUsersOnlyOption.ConfigureOption(command);
     command.OnExecute(async() =>
     {
         return(await this.Execute());
     });
     base.Configure(command);
 }
Пример #2
0
 public override void Configure(CommandLineApplication command)
 {
     _app = command;
     command.Description = "List all Box users.";
     _managedUsers       = ManagedUsersOnlyOption.ConfigureOption(command);
     _appUsers           = AppUsersOnlyOption.ConfigureOption(command);
     _save         = SaveOption.ConfigureOption(command);
     _path         = FilePathOption.ConfigureOption(command);
     _fileFormat   = FileFormatOption.ConfigureOption(command);
     _fieldsOption = FieldsOption.ConfigureOption(command);
     _limit        = LimitOption.ConfigureOption(command);
     command.OnExecute(async() =>
     {
         return(await this.Execute());
     });
     base.Configure(command);
 }