/*
* 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.renamer;
if (!parser.parse(args))
return null;
- if (testParameter.isParameterSpecified())
+ if (testParameter.isSpecified())
options.testOnly = true;
- if (recursiveParameter.isParameterSpecified())
+ if (recursiveParameter.isSpecified())
options.recursive = true;
- if (outputPatternParameter.isParameterSpecified())
+ if (outputPatternParameter.isSpecified())
options.outputPattern = outputPatternParameter.getValue();
- if (workingDirectoryParameter.isParameterSpecified())
+ if (workingDirectoryParameter.isSpecified())
options.targetDirectory = workingDirectoryParameter.getValue();
else
options.targetDirectory = new File(System.getProperty("user.dir"));
// TODO: add multiple input patterns support
- if (inputPatternParameter.isParameterSpecified())
+ if (inputPatternParameter.isSpecified())
options.inputPatterns.addAll(inputPatternParameter.getValue());
return options;