/*
* 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
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;