> +    *    planetnikbucketname
> +    *
> +    * java org.jclouds.examples.google.cloudstorage.ManageBuckets \
> +    *    somecrypticn...@developer.gserviceaccount.com \
> +    *    /home/planetnik/Work/Cloud/OSS/certificate/gcp-oss.pem \
> +    *    delete \
> +    *    planetnikbucketname
> +    *
> +    * java org.jclouds.examples.google.cloudstorage.ManageBuckets \
> +    *    somecrypticn...@developer.gserviceaccount.com \
> +    *    /home/planetnik/Work/Cloud/OSS/certificate/gcp-oss.pem \
> +    *    list \
> +    *    myprojectname
> +    */
> +   public static void main(final String[] args) {
> +      String serviceAccountEmailAddress = args[0];

How about combining the arg parsing with the comment selection? Something like:
```
// parse args required for all commands and command
ManageBuckets manageBuckets = ...
if (command.equals(...)) {
  // parse additional args for this command
  manageBuckets...
} else if (command.equals(...)) {
  // parse options for this command
  ...
}
```

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

Reply via email to