Blob Blame History Raw
diff -aurp a/terminalparser.cpp b/terminalparser.cpp
--- a/terminalparser.cpp	2018-09-13 01:41:40.000000000 -0300
+++ b/terminalparser.cpp	2018-09-13 19:28:13.705009686 -0300
@@ -129,8 +129,14 @@ bool TerminalParser::Parse()
         }
         if (!valid)
         {
-            cerr << "This parameter isn't valid: " << text << endl;
-            return true;
+            if (this->argc == x + 1)
+            {
+                Configuration::Input = this->argv[x];
+            } else
+            {
+                cerr << "This parameter isn't valid: " << text << endl;
+                return true;
+            }
         }
         x++;
     }