From c7a30c963d8dd969430a0e3c4cf4d01edbac4be4 Mon Sep 17 00:00:00 2001
From: Leonard Kupper <leonard.kupper@mailbox.tu-dresden.de>
Date: Tue, 1 Oct 2019 12:48:22 +0200
Subject: [PATCH] Set parameter requirements.

---
 .../brailleplot/commandline/CommandLineParser.java   | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/java/de/tudresden/inf/mci/brailleplot/commandline/CommandLineParser.java b/src/main/java/de/tudresden/inf/mci/brailleplot/commandline/CommandLineParser.java
index 5a7086af..a6f5c836 100644
--- a/src/main/java/de/tudresden/inf/mci/brailleplot/commandline/CommandLineParser.java
+++ b/src/main/java/de/tudresden/inf/mci/brailleplot/commandline/CommandLineParser.java
@@ -22,13 +22,13 @@ public class CommandLineParser {
     private void setupOptions() {
         mOptions = new Options();
         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("p", SettingType.PRINTER_CONFIG_PATH.toString(), true, "Path to printer configuration file")
-                .addOption("t", SettingType.DIAGRAM_TITLE.toString(), true, "Title of the diagram")
-                .addOption("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")
-                .addOption("d", SettingType.DIAGRAM_TYPE.toString(), true, "Type of the diagram. Possible Values: [ScatterPlot, LineChart, BarChart]")
+                .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.toString(), false, "Parse CSV in vertical instead of horizontal orientation (Only applicable for BarChart)");
     }
-- 
GitLab