Updated copyright message.
[meviz.git] / src / main / java / eu / svjatoslav / meviz / replace / CommandlineHandler.java
index 5c6d44b..915367b 100755 (executable)
@@ -1,6 +1,6 @@
 /*
  * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of version 2 of the GNU General Public License
@@ -43,18 +43,18 @@ class CommandlineHandler {
         if (!parser.parse(args))
             return null;
 
-        if (recursiveParameter.isParameterSpecified())
+        if (recursiveParameter.isSpecified())
             options.recursive = true;
 
-        if (directoryParameter.isParameterSpecified())
+        if (directoryParameter.isSpecified())
             options.targetDirectory = directoryParameter.getValue();
         else
             options.targetDirectory = new File(System.getProperty("user.dir"));
 
-        if (searchForPattern.isParameterSpecified())
+        if (searchForPattern.isSpecified())
             options.searchForPattern = searchForPattern.getValue();
 
-        if (replaceWithPattern.isParameterSpecified())
+        if (replaceWithPattern.isSpecified())
             options.replaceWithPattern = replaceWithPattern.getValue();
 
         return options;