Skip to content

Commit a620337

Browse files
authored
Update UCPMultiUsers.java
1 parent 3ac7c68 commit a620337

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/jdbc/BasicSamples/UCPMultiUsers.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* for ALL 3 of user, password, and URL. This can be done by either updating
1717
* this file directly or supplying the 3 values as command-line options
1818
* and user input. The password is read from console or standard input.
19-
* java UCPMultiUsers -url <url> -user <user>
19+
* java UCPMultiUsers -l <url> -u <user>
2020
* If you do not update all the defaults, the program proceeds but
2121
* will hit error when connecting.
2222
*/
@@ -114,10 +114,10 @@ static void showError(String msg, Throwable exc) {
114114

115115
static void getRealUserPasswordUrl(String args[]) throws Exception {
116116
// URL can be modified in file, or taken from command-line
117-
url = getOptionValue(args, "-url", DEFAULT_URL);
117+
url = getOptionValue(args, "-l", DEFAULT_URL);
118118

119119
// DB user can be modified in file, or taken from command-line
120-
user = getOptionValue(args, "-user", DEFAULT_USER);
120+
user = getOptionValue(args, "-u", DEFAULT_USER);
121121

122122
// DB user's password can be modified in file, or explicitly entered
123123
readPassword(" Password for " + user + ": ");

0 commit comments

Comments
 (0)