Updated copyright and license.
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / CommandlineHandler.java
index 367742e..41d30e6 100755 (executable)
@@ -1,11 +1,11 @@
 /*
  * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Copyright (C) 2012 -- 2019, 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
- * as published by the Free Software Foundation.
- */
+ * modify it under the terms of version 3 of the GNU Lesser General Public License
+ * or later as published by the Free Software Foundation.
+*/
 
 package eu.svjatoslav.meviz.encoder;
 
@@ -59,30 +59,30 @@ class CommandlineHandler {
 
         parser.parse(args);
 
-        options.setRecursive(recursiveParameter.isParameterSpecified());
+        options.setRecursive(recursiveParameter.isSpecified());
 
-        options.setDeinterlace(deinterlaceParameter.isParameterSpecified());
+        options.setDeinterlace(deinterlaceParameter.isSpecified());
 
-        options.setTestOnly(testParameter.isParameterSpecified());
+        options.setTestOnly(testParameter.isSpecified());
 
-        if (outputFormatParameter.isParameterSpecified())
+        if (outputFormatParameter.isSpecified())
             options.getOutputFormats().addAll(outputFormatParameter.getValue());
 
-        if (targetFramerate.isParameterSpecified())
+        if (targetFramerate.isSpecified())
             options.setTargetFps(targetFramerate.getValue());
 
-        if (workingDirectoryParameter.isParameterSpecified())
+        if (workingDirectoryParameter.isSpecified())
             options.setWorkingDirectory(workingDirectoryParameter.getValue());
 
-        if (inputPatternParameter.isParameterSpecified())
+        if (inputPatternParameter.isSpecified())
             options.getInputPatterns().addAll(inputPatternParameter.getValue());
 
-        options.setForPortablePlayer(forPortableParameter.isParameterSpecified());
+        options.setForPortablePlayer(forPortableParameter.isSpecified());
 
-        if (videoBitrateParameter.isParameterSpecified())
+        if (videoBitrateParameter.isSpecified())
             options.setVideoBitrate(videoBitrateParameter.getValue());
 
-        if (audioBitrateParameter.isParameterSpecified())
+        if (audioBitrateParameter.isSpecified())
             options.setAudioBitrate(audioBitrateParameter.getValue());
 
         return options;