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) {
|
public static void main(String[] args) {
|
||||||
if(args.length != 2) {
|
if(args.length != 2) {
|
||||||
System.out.println("Usage: java Client [server] [port]");
|
System.out.println("Usage: consolechat-client [server] [port]");
|
||||||
} else {
|
} else {
|
||||||
new Client(args[0], Integer.parseInt(args[1]));
|
new Client(args[0], Integer.parseInt(args[1]));
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ public class Server implements Runnable {
|
|||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
if(args.length != 1) {
|
if(args.length != 1) {
|
||||||
System.out.println("You are using the program incorrectly.");
|
System.out.println("Usage: consolechat-server [port]");
|
||||||
} else {
|
} else {
|
||||||
new Server(Integer.parseInt(args[0]));
|
new Server(Integer.parseInt(args[0]));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user