Skip to content

Commit 8edbda4

Browse files
author
Ajay Kannan
committed
Update pom version in resource manager + minor fixes to ResourceManagerExample
1 parent bac6a07 commit 8edbda4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

gcloud-java-examples/src/main/java/com/google/gcloud/examples/ResourceManagerExample.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ private static void addUsage(
179179
usage.append(actionName);
180180
Joiner joiner = Joiner.on(" ");
181181
String[] requiredParams = action.getRequiredParams();
182-
String[] optionalParams = action.getOptionalParams();
183182
if (requiredParams.length > 0) {
184183
usage.append(' ');
185184
joiner.appendTo(usage, requiredParams);
186185
}
186+
String[] optionalParams = action.getOptionalParams();
187187
if (optionalParams.length > 0) {
188188
usage.append(" [");
189189
joiner.appendTo(usage, optionalParams);
@@ -213,8 +213,9 @@ public static void main(String... args) {
213213
args = args.length > 1 ? Arrays.copyOfRange(args, 1, args.length) : new String[] {};
214214
if (args.length < action.getRequiredParams().length) {
215215
StringBuilder usage = new StringBuilder();
216+
usage.append("Usage: ");
216217
addUsage(actionName, action, usage);
217-
System.out.println("Usage: " + usage);
218+
System.out.println(usage);
218219
} else {
219220
action.run(resourceManager, args);
220221
}

gcloud-java-resourcemanager/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<parent>
1212
<groupId>com.google.gcloud</groupId>
1313
<artifactId>gcloud-java-pom</artifactId>
14-
<version>0.0.13-SNAPSHOT</version>
14+
<version>0.1.1-SNAPSHOT</version>
1515
</parent>
1616
<properties>
1717
<site.installationModule>gcloud-java-resourcemanager</site.installationModule>

0 commit comments

Comments
 (0)