File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
javav2/example_code/location/src/main/java/com/example/location Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,21 @@ private static LocationAsyncClient getClient() {
4949 }
5050
5151 public static void main (String [] args ) {
52- String colletionName = "ScottCollection30" ;
52+ final String usage = """
53+
54+ Usage:
55+ <colletionName>
56+
57+ Where:
58+ colletionName - The Amazon location collection name.
59+ """ ;
60+
61+ if (args .length != 1 ) {
62+ System .out .println (usage );
63+ System .exit (1 );
64+ }
65+
66+ String colletionName = args [0 ];
5367 listGeofences (colletionName );
5468 }
5569
Original file line number Diff line number Diff line change 22// SPDX-License-Identifier: Apache-2.0
33
44package com .example .location .scenario ;
5-
65import org .slf4j .Logger ;
76import org .slf4j .LoggerFactory ;
87import java .util .Scanner ;
You can’t perform that action at this time.
0 commit comments