Skip to content

Commit

Permalink
Improved help messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
renato committed May 16, 2017
1 parent fe949df commit 5ce649e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion jgrab-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ Options:
--start -t
Starts the JGrab daemon (if not yet running).
--help -h
Shows usage help.";
Shows usage.
--version -v
Shows version information.";

/// All possible sources of input for the JGrab Client
enum Input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ private static JGrabOptions help() {
"Jgrab can execute Java code from stdin (if not given any argument),\n" +
"a Java file, or a Java snippet.\n\n" +
"Usage:\n" +
" jgrab [<option> | java_file | -e java_snippet]\n" +
" jgrab [<option> | java_file [java-args*] | -e java_snippet]\n" +
"Options:\n" +
" --daemon -d\n" +
" Starts up the JGrab daemon (used by the jgrab-client).\n" +
" --help -h\n" +
" Shows this usage help." );
" Shows usage.\n" +
" --version -v\n" +
" Shows version information." );

return new JGrabOptions.None();
}
Expand Down

0 comments on commit 5ce649e

Please sign in to comment.