Skip to content
Snippets Groups Projects
Commit adb6820f authored by Vojtech Moravec's avatar Vojtech Moravec
Browse files

Edited main help text.

parent 2197bacf
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ public class DataCompressor {
cmd = parser.parse(options, args);
} catch (ParseException e) {
if ((args.length > 0) && (args[0].equals("-h") || args[0].equals("--help"))) {
formatter.printHelp("ijava -jar DataCompressor.jar", options);
formatter.printHelp(CliConstants.MAIN_HELP, options);
return;
}
System.err.println("Error: " + e.getMessage());
......@@ -60,7 +60,7 @@ public class DataCompressor {
return;
}
case PrintHelp: {
formatter.printHelp("ijava -jar DataCompressor.jar", options);
formatter.printHelp(CliConstants.MAIN_HELP, options);
}
break;
case InspectFile: {
......
......@@ -2,6 +2,8 @@ package cli;
public class CliConstants {
public static final String MAIN_HELP = "DataCompressor [options] input_file with dimensions";
public static final String HELP_SHORT = "h";
public static final String HELP_LONG = "help";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment