private static Namespace parseCommandLine(String[] args) throws ArgumentParserException {
String usage = "java -jar " + new JarLocation(DictionaryUser.class);
ArgumentParser argParser = ArgumentParsers.newArgumentParser(usage).defaultHelp(true);
argParser.addArgument("config-file").nargs("?").help("yaml configuration file");
argParser.addArgument("word-file").nargs("+").help("one or more files containing words");
return argParser.parseArgs(args);
}
private static DictionaryConfiguration loadConfigFile(String configFile)
throws IOException, ConfigurationException {
ConfigurationFactory<DictionaryConfiguration> configFactory = ConfigurationFactory