/*
- * 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.renamer;
import eu.svjatoslav.commons.commandline.parameterparser.Parser;
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;