Changed usage info.
This commit is contained in:
parent
d2959fbfa1
commit
bb94770127
@ -21,7 +21,7 @@ public class Client implements Runnable {
|
||||
|
||||
public static void main(String[] args) {
|
||||
if(args.length != 2) {
|
||||
System.out.println("Usage: java Client [server] [port]");
|
||||
System.out.println("Usage: consolechat-client [server] [port]");
|
||||
} else {
|
||||
new Client(args[0], Integer.parseInt(args[1]));
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ public class Server implements Runnable {
|
||||
|
||||
public static void main(String[] args) {
|
||||
if(args.length != 1) {
|
||||
System.out.println("You are using the program incorrectly.");
|
||||
System.out.println("Usage: consolechat-server [port]");
|
||||
} else {
|
||||
new Server(Integer.parseInt(args[0]));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user