Skip to content
Snippets Groups Projects
Commit b0d33800 authored by Andrey Ruzhanskiy's avatar Andrey Ruzhanskiy
Browse files

Adde parameters

parent 12a5b614
No related branches found
No related tags found
1 merge request!39App restructuring
......@@ -23,14 +23,16 @@ public class CommandLineParser {
mOptions = new Options();
mOptions.addOption("h", SettingType.DISPLAY_HELP.toString(), false, "Print help and exit")
.addRequiredOption("c", SettingType.CSV_LOCATION.toString(), true, "Path to CSV")
.addOption("s", SettingType.SEMANTIC_MAPPING.toString(), true, "Literal for semantic mapping")
.addRequiredOption("p", SettingType.PRINTER_CONFIG_PATH.toString(), true, "Path to printer configuration file")
.addRequiredOption("t", SettingType.DIAGRAM_TITLE.toString(), true, "Title of the diagram")
.addRequiredOption("x", SettingType.X_AXIS_LABEL.toString(), true, "Label of X-axis including unit")
.addRequiredOption("y", SettingType.Y_AXIS_LABEL.toString(), true, "Label of Y-axis including unit")
.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("v", SettingType.VERTICAL_CSV.toString(), false, "Parse CSV in vertical instead of horizontal orientation (Only applicable for BarChart)");
.addOption("v", SettingType.VERTICAL_CSV.toString(), false, "Parse CSV in vertical instead of horizontal orientation (Only applicable for BarChart)")
.addOption("i", SettingType.INHIBIT_PRINT.toString(), false, "Inhibit the printing process")
.addOption("s", SettingType.SVG_EXPORT.toString(), true, "File path for the generated svg")
.addOption("b", SettingType.BYTE_DUMP.toString(), true, "File path for the generated printing byte dump file");
}
/**
......
......@@ -16,7 +16,11 @@ public enum SettingType {
Y_AXIS_LABEL("yLabel"),
DIAGRAM_TYPE("diagram-type"),
FORMAT("format"),
VERTICAL_CSV("vertical-csv");
VERTICAL_CSV("vertical-csv"),
INHIBIT_PRINT("inhibit-print"),
SVG_EXPORT("svg-export"),
BYTE_DUMP("byte-dump");
private final String mName;
......@@ -46,6 +50,10 @@ public enum SettingType {
return FORMAT;
case "vertical-csv":
return VERTICAL_CSV;
case "inhibit-print":
return INHIBIT_PRINT;
case "svg-export":
return SVG_EXPORT;
default:
throw new IllegalArgumentException("Setting not available");
}
......
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