2 * Svjatoslav Commons - shared library of common functionality.
3 * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 2 of the GNU General Public License
7 * as published by the Free Software Foundation.
10 package eu.svjatoslav.commons.commandline.parameterparser.arguments;
14 import eu.svjatoslav.commons.commandline.parameterparser.Argument;
16 public class ExistingDirectory implements Argument {
19 public java.lang.String describeFormat() {
20 return "existing directory";
24 public boolean validate(final java.lang.String value) {
25 final File file2 = new File(value);
26 if (file2.exists() && file2.isDirectory())