> +      String command = args[2];
> +      String projectName = null;
> +      String bucketName = null;
> +      if (command.equals("create")) {
> +         projectName = args[3];
> +         bucketName = args[4];
> +      } else if (command.equals("delete")) {
> +         bucketName = args[3];
> +         if (args.length >= 5) {
> +            System.err.println("Command 'delete' require only one additional 
> parameter (bucketName).");
> +            System.exit(1);
> +         }
> +      } else if (command.equals("list")) {
> +         projectName = args[3];
> +         if (args.length >= 5) {
> +            System.err.println("Command 'list' require only one additional 
> parameters (projectName).");

Is this worth an error? Might just warn and continue?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/64/files#r17208827

Reply via email to