Exemplo n.º 1
0
  @Override
  public CliCommand init(final Arguments args) throws Exception {
    processCommandOptions(requiredArgs, optionalArgs, args);

    this.jobId = UUID.fromString(args.getId());
    this.priority = args.getPriority();
    return this;
  }
Exemplo n.º 2
0
 @Override
 public CliCommand init(final Arguments args) throws Exception {
   bucketName = args.getBucket();
   if (bucketName == null) {
     throw new MissingOptionException("The delete bucket command requires '-b' to be set.");
   }
   force = args.isForce();
   return this;
 }