blob: e6f6ced2486459b812b3fbfcd3cffc4a1cae1902 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package ch.epfl.xblast.client;
import ch.epfl.xblast.ArgumentChecker;
/**
* Entry point class of the client.
*
* @author Pacien TRAN-GIRARD (261948)
*/
public final class Main {
private Main() {
// Static class
}
/**
* Start a new client.
*
* @param args arguments given to the client (address and port of the server to connect to)
*/
public static void main(String[] args) {
String host = ArgumentChecker.getOrNull(args, 0);
Integer port = ArgumentChecker.parseIntOrNull(ArgumentChecker.getOrNull(args, 1));
(new Client(host, port)).run();
}
}
|