added help argument
This commit is contained in:
parent
8d8ed294e8
commit
cfc24354b9
@ -71,6 +71,11 @@ public class ClientP2P {
|
||||
* @param args server listenning port
|
||||
*/
|
||||
public static void main(String [] args) {
|
||||
|
||||
if (args[1].equals("help") || args[1].equals("-h") || args[1].equals("h")){
|
||||
System.out.println("usage : java -ea clientP2P.ClientP2P -- <PORT> ");
|
||||
}
|
||||
else{
|
||||
ClientP2P c;
|
||||
try {
|
||||
c = new ClientP2P(args[1]);
|
||||
@ -124,4 +129,5 @@ public class ClientP2P {
|
||||
t.setName("client P2P-JAVA-PROJECT");
|
||||
t.start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user