updated README.md

This commit is contained in:
Aidan Hahn 2019-05-19 14:39:41 -07:00
parent 8982353f0a
commit 75c3dcda61
No known key found for this signature in database
GPG key ID: 327711E983899316
2 changed files with 26 additions and 12 deletions

View file

@ -211,14 +211,12 @@ public class JobServClient {
* Parses arguments and calls the correct function
*/
public static void main(String[] args) throws Exception {
if (args.length == 1 && args[0] == "help"){
outputHelp();
}
// check args
if (args.length < 7) {
System.out.println("Usage: $ ./jobserv-client privatekey, cert, truststore, host, port, command, args");
System.out.println("Or try $ ./jobserv-client help");
outputHelp();
return;
}
@ -342,6 +340,10 @@ public class JobServClient {
}
}
/*
* outputHelp()
* writes help information about all commands in the shell to screen
*/
public static void outputHelp() {
System.out.println("... new (command)");
System.out.println("Starts a new process on the server");