File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/nsusbloader/cli Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 27
27
// TODO: Add 'don't serve requests' option
28
28
public class TinfoilNet {
29
29
30
- private String [] arguments ;
30
+ private final String [] arguments ;
31
31
32
32
private String nsIp ;
33
33
@@ -43,7 +43,7 @@ public class TinfoilNet {
43
43
this .arguments = arguments ;
44
44
checkArguments ();
45
45
parseNsIP ();
46
- parseHostIPAndExtras ();
46
+ parseHostSettings ();
47
47
parseFilesArguments ();
48
48
runTinfoilNetBackend ();
49
49
}
@@ -73,8 +73,8 @@ private void checkArguments() throws IncorrectSetupException{
73
73
private boolean isHelpDirective (String argument ){
74
74
return argument .equals ("help" );
75
75
}
76
- private void showHelp (){
77
- System . out . println ("Usage:\n "
76
+ private void showHelp () throws IncorrectSetupException {
77
+ throw new IncorrectSetupException ("Usage:\n "
78
78
+ "\t ns-usbloader -n nsip=<arg1> [hostip=<arg2>] FILE1 ...\n "
79
79
+ "\t ns-usbloader --tfn nsip=<arg1> [hostip=<arg2>] FILE1 ..."
80
80
+ "\n \n Options:"
@@ -96,7 +96,7 @@ private void parseNsIP() throws IncorrectSetupException{
96
96
"Try 'ns-usbloader -n help' for more information." );
97
97
}
98
98
99
- private void parseHostIPAndExtras (){
99
+ private void parseHostSettings (){
100
100
String argument2 = arguments [1 ];
101
101
102
102
if (! argument2 .startsWith ("hostip=" ))
You can’t perform that action at this time.
0 commit comments