Blame SOURCES/cpaste-lastargasfilename.patch

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