Skip to content
Snippets Groups Projects
Commit c7a30c96 authored by Leonard Kupper's avatar Leonard Kupper
Browse files

Set parameter requirements.

parent 6a3042e0
No related branches found
No related tags found
1 merge request!39App restructuring
...@@ -22,13 +22,13 @@ public class CommandLineParser { ...@@ -22,13 +22,13 @@ public class CommandLineParser {
private void setupOptions() { private void setupOptions() {
mOptions = new Options(); mOptions = new Options();
mOptions.addOption("h", SettingType.DISPLAY_HELP.toString(), false, "Print help and exit") mOptions.addOption("h", SettingType.DISPLAY_HELP.toString(), false, "Print help and exit")
.addOption("c", SettingType.CSV_LOCATION.toString(), true, "Path to CSV") .addRequiredOption("c", SettingType.CSV_LOCATION.toString(), true, "Path to CSV")
.addOption("s", SettingType.SEMANTIC_MAPPING.toString(), true, "Literal for semantic mapping") .addOption("s", SettingType.SEMANTIC_MAPPING.toString(), true, "Literal for semantic mapping")
.addOption("p", SettingType.PRINTER_CONFIG_PATH.toString(), true, "Path to printer configuration file") .addRequiredOption("p", SettingType.PRINTER_CONFIG_PATH.toString(), true, "Path to printer configuration file")
.addOption("t", SettingType.DIAGRAM_TITLE.toString(), true, "Title of the diagram") .addRequiredOption("t", SettingType.DIAGRAM_TITLE.toString(), true, "Title of the diagram")
.addOption("x", SettingType.X_AXIS_LABEL.toString(), true, "Label of X-axis including unit") .addRequiredOption("x", SettingType.X_AXIS_LABEL.toString(), true, "Label of X-axis including unit")
.addOption("y", SettingType.Y_AXIS_LABEL.toString(), true, "Label of Y-axis including unit") .addRequiredOption("y", SettingType.Y_AXIS_LABEL.toString(), true, "Label of Y-axis including unit")
.addOption("d", SettingType.DIAGRAM_TYPE.toString(), true, "Type of the diagram. Possible Values: [ScatterPlot, LineChart, BarChart]") .addRequiredOption("d", SettingType.DIAGRAM_TYPE.toString(), true, "Type of the diagram. Possible Values: [ScatterPlot, LineChart, BarChart]")
.addOption("f", SettingType.FORMAT.toString(), true, "Name of predefined format from configuration") .addOption("f", SettingType.FORMAT.toString(), true, "Name of predefined format from configuration")
.addOption("v", SettingType.VERTICAL.toString(), false, "Parse CSV in vertical instead of horizontal orientation (Only applicable for BarChart)"); .addOption("v", SettingType.VERTICAL.toString(), false, "Parse CSV in vertical instead of horizontal orientation (Only applicable for BarChart)");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment