Skip to content

Commit

Permalink
Update pom version in resource manager + minor fixes to ResourceManag…
Browse files Browse the repository at this point in the history
…erExample
  • Loading branch information
Ajay Kannan committed Dec 21, 2015
1 parent bac6a07 commit 8edbda4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ private static void addUsage(
usage.append(actionName);
Joiner joiner = Joiner.on(" ");
String[] requiredParams = action.getRequiredParams();
String[] optionalParams = action.getOptionalParams();
if (requiredParams.length > 0) {
usage.append(' ');
joiner.appendTo(usage, requiredParams);
}
String[] optionalParams = action.getOptionalParams();
if (optionalParams.length > 0) {
usage.append(" [");
joiner.appendTo(usage, optionalParams);
Expand Down Expand Up @@ -213,8 +213,9 @@ public static void main(String... args) {
args = args.length > 1 ? Arrays.copyOfRange(args, 1, args.length) : new String[] {};
if (args.length < action.getRequiredParams().length) {
StringBuilder usage = new StringBuilder();
usage.append("Usage: ");
addUsage(actionName, action, usage);
System.out.println("Usage: " + usage);
System.out.println(usage);
} else {
action.run(resourceManager, args);
}
Expand Down
2 changes: 1 addition & 1 deletion gcloud-java-resourcemanager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.google.gcloud</groupId>
<artifactId>gcloud-java-pom</artifactId>
<version>0.0.13-SNAPSHOT</version>
<version>0.1.1-SNAPSHOT</version>
</parent>
<properties>
<site.installationModule>gcloud-java-resourcemanager</site.installationModule>
Expand Down

0 comments on commit 8edbda4

Please sign in to comment.