Hi,
Thanks for the excellent tool!
I'm running into a problem. I have an option defined as follows:
opSchemasConfigRoot = parser.acceptsAll(Arrays.asList(
"s", "schemas-config-root"), "schemas config root dir")
.withRequiredArg()
.withValuesConvertedBy(new PathConverter(PathProperties.DIRECTORY_EXISTING))
.required();
As you can see, I'm checking to make sure that the directory specified as an argument to the option exists on the filesystem. However, when I run the code and specify a directory that does not exist, I get a very generic error message:
"Cannot parse argument '/home/greg/dev/testfiles/TDCConfig/Schema' of option s/schemas-config-root"
The moment I specify a directory that does exist, the argument is accepted with no problems.
From a look at the code it appears I should be getting the message, "Directory [{0}] does not exist" from the ExceptionMessages.properties file.
What am I missing?
Thanks,
Greg