Changed license to CC0.
[meviz.git] / src / main / java / eu / svjatoslav / meviz / htmlindexer / CommandlineHandler.java
index 497b5b3..2104c1c 100755 (executable)
@@ -1,12 +1,9 @@
 /*
- * 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.htmlindexer;
 
 import eu.svjatoslav.commons.commandline.parameterparser.Parser;
@@ -17,7 +14,7 @@ import eu.svjatoslav.meviz.encoder.EncodingOptions;
 
 import java.io.File;
 
-class CommandlineHandler {
+public class CommandlineHandler {
 
     final Parser parser = new Parser();
     final NullParameter removeIndex = parser.add(
@@ -32,13 +29,13 @@ class CommandlineHandler {
             .addAliases("-w", "--working-directory").mustExist();
 
     public String getGalleryTitle() {
-        if (galleryNameParameter.isParameterSpecified())
+        if (galleryNameParameter.isSpecified())
             return galleryNameParameter.getValue();
         return Constants.DEFAULT_GALLERY_TITLE;
     }
 
     public File getWorkingDirectory() {
-        if (workingDirectoryParameter.isParameterSpecified())
+        if (workingDirectoryParameter.isSpecified())
             return workingDirectoryParameter.getValue();
         else
             return new File(System.getProperty("user.dir"));