Updated dependencies
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / CommandlineHandler.java
index 367742e..6757031 100755 (executable)
@@ -1,19 +1,16 @@
 /*
- * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012, 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.
+ * Meviz - Various tools collection to work with multimedia. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
  */
 
+
 package eu.svjatoslav.meviz.encoder;
 
-import eu.svjatoslav.commons.commandline.parameterparser.Parser;
-import eu.svjatoslav.commons.commandline.parameterparser.parameter.DirectoryParameter;
-import eu.svjatoslav.commons.commandline.parameterparser.parameter.IntegerParameter;
-import eu.svjatoslav.commons.commandline.parameterparser.parameter.NullParameter;
-import eu.svjatoslav.commons.commandline.parameterparser.parameter.StringParameters;
+import eu.svjatoslav.commons.cli_helper.parameter_parser.Parser;
+import eu.svjatoslav.commons.cli_helper.parameter_parser.parameter.DirectoryParameter;
+import eu.svjatoslav.commons.cli_helper.parameter_parser.parameter.IntegerParameter;
+import eu.svjatoslav.commons.cli_helper.parameter_parser.parameter.NullParameter;
+import eu.svjatoslav.commons.cli_helper.parameter_parser.parameter.StringParameters;
 
 class CommandlineHandler {
 
@@ -59,30 +56,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;