+/*
+ * Svjatoslav Commons - shared library of common functionality.
+ * Copyright ©2012-2014, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ *
+ * This program is free software; you can redistribute it and/or
+ * 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.commons.commandline.parameterparser.parameter;
import java.io.File;
@Override
public FileParameter addAliases(final String... aliasArray) {
- super.addAliases(aliasArray);
+ super.addAliasesProtected(aliasArray);
return this;
}
@Override
public java.lang.String describeFormat() {
- return existanceType.description + "file";
+ return existanceType.description + " file";
}
+ @Override
public File getValue() {
if (arguments.size() != 1)
@Override
public FileParameter setMandatory() {
- mandatory = true;
+ setMandatoryProtected();
return this;
}