-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefinitelyNotExcel.java
46 lines (40 loc) · 1.33 KB
/
DefinitelyNotExcel.java
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import gui.GuiBase;
import tui.TuiBase;
/**
* main program class.
*
* @author Edoardo Salvioni
* @author Anton Tanev
* @version 0.0.1
*/
public final class DefinitelyNotExcel {
/**
* Actually Useless Constructor.
*/
private DefinitelyNotExcel() {
//PlaceHolder
}
/**
* Initialize the Program in Your Preferred UserInterface
*
* @param args Commands at terminal call.
*/
public static void main(final String[] args) {
if (args.length == 0) {
System.out.println("Welcome to the Terminal User Interface of Definitely Not Excel");
System.out.println("Commands:");
System.out.println("To open In Terminal User Interface please type:");
System.out.println("java DefinitelyNotExcel tui");
System.out.println("To open in Graphical User Interface please type:");
System.out.println("java DefinitelyNotExcel gui");
} else {
if ("gui".equals(args[0])) {
new GuiBase();
} else if ("tui".equals(args[0])) {
System.out.println("You have entered the Tui");
System.out.println("Type help for commands");
new TuiBase();
} else { System.out.println("Error Opening the Software"); }
}
}
}