本文整理汇总了Java中eu.fbk.utils.core.CommandLine.Parser方法的典型用法代码示例。如果您正苦于以下问题:Java CommandLine.Parser方法的具体用法?Java CommandLine.Parser怎么用?Java CommandLine.Parser使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eu.fbk.utils.core.CommandLine
的用法示例。
在下文中一共展示了CommandLine.Parser方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: provideParameterList
import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
return CommandLine.parser()
.withOption("c", DB_CONNECTION,
"connection string for the database", "DB",
CommandLine.Type.STRING, true, false, true)
.withOption(null, DB_USER,
"user for the database", "USER",
CommandLine.Type.STRING, true, false, true)
.withOption(null, DB_PASSWORD,
"password for the database", "PASSWORD",
CommandLine.Type.STRING, true, false, true)
.withOption(null, ENDPOINT,
"URL to SPARQL endpoint", "ENDPOINT",
CommandLine.Type.STRING, true, false, true)
.withOption("w", WORKING,
"Input file with entities", "INPUT",
CommandLine.Type.STRING, true, false, true)
.withOption(null, LSA_PATH,
"path to LSA model", "DIRECTORY",
CommandLine.Type.STRING, true, false, true);
}
示例2: provideParameterList
import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
return CommandLine.parser()
.withOption("c", DB_CONNECTION,
"connection string for the database", "DB",
CommandLine.Type.STRING, true, false, true)
.withOption(null, DB_USER,
"user for the database", "USER",
CommandLine.Type.STRING, true, false, true)
.withOption(null, DB_PASSWORD,
"password for the database", "PASSWORD",
CommandLine.Type.STRING, true, false, true)
.withOption(null, ENDPOINT,
"URL to SPARQL endpoint", "ENDPOINT",
CommandLine.Type.STRING, true, false, true)
.withOption(null, INPUT,
"Input file with entities", "INPUT",
CommandLine.Type.STRING, true, false, true);
}
示例3: provideParameterList
import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
return CommandLine.parser()
.withOption("c", DB_CONNECTION,
"connection string for the database", "DB",
CommandLine.Type.STRING, true, false, true)
.withOption(null, DB_USER,
"user for the database", "USER",
CommandLine.Type.STRING, true, false, true)
.withOption(null, DB_PASSWORD,
"password for the database", "PASSWORD",
CommandLine.Type.STRING, true, false, true)
.withOption(null, ENDPOINT,
"URL to SPARQL endpoint", "ENDPOINT",
CommandLine.Type.STRING, true, false, true)
.withOption(null, QUERY,
"Query", "QUERY",
CommandLine.Type.STRING, true, false, false);
}
示例4: provideParameterList
import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
return CommandLine.parser()
.withOption("c", DB_CONNECTION,
"connection string for the database", "DB",
CommandLine.Type.STRING, true, false, true)
.withOption(null, DB_USER,
"user for the database", "USER",
CommandLine.Type.STRING, true, false, true)
.withOption(null, DB_PASSWORD,
"password for the database", "PASSWORD",
CommandLine.Type.STRING, true, false, true)
.withOption(null, ENDPOINT,
"URL to SPARQL endpoint", "ENDPOINT",
CommandLine.Type.STRING, true, false, true)
.withOption(null, LSA_PATH,
"path to LSA model", "DIRECTORY",
CommandLine.Type.STRING, true, false, true)
.withOption(null, QUERY,
"Query", "QUERY",
CommandLine.Type.STRING, true, false, false);
}
示例5: provideParameterList
import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
return CommandLine.parser()
.withOption("c", DB_CONNECTION,
"connection string for the database", "DB",
CommandLine.Type.STRING, true, false, false)
.withOption(null, DB_USER,
"user for the database", "USER",
CommandLine.Type.STRING, true, false, false)
.withOption(null, DB_PASSWORD,
"password for the database", "PASSWORD",
CommandLine.Type.STRING, true, false, false)
.withOption("t", TWEETS_PATH,
"specifies the directory from which to get a stream of tweets", "DIRECTORY",
CommandLine.Type.STRING, true, false, true)
.withOption("r", RESULTS_PATH,
"specifies the directory to which the results will be saved (in this case the db params are not required)", "DIRECTORY",
CommandLine.Type.STRING, true, false, false);
}
示例6: provideParameterList
import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
return CommandLine.parser()
.withOption("o", OUTPUT,
"output directory where to store the results", "DIRECTORY",
CommandLine.Type.STRING, true, false, true)
.withOption(null, CONSUMER_KEY,
"application consumer key", "KEY",
CommandLine.Type.STRING, true, false, true)
.withOption(null, CONSUMER_SECRET,
"application consumer secret", "SECRET",
CommandLine.Type.STRING, true, false, true);
}
示例7: provideParameterList
import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
return CommandLine.parser()
.withOption(null, ENDPOINT,
"URL to SPARQL endpoint", "ENDPOINT",
CommandLine.Type.STRING, true, false, true)
.withOption("w", WORKING,
"Input file with entities", "INPUT",
CommandLine.Type.STRING, true, false, true);
}
示例8: provideParameterList
import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
return CommandLine.parser()
.withOption("c", DB_CONNECTION,
"connection string for the database", "DB",
CommandLine.Type.STRING, true, false, true)
.withOption(null, DB_USER,
"user for the database", "USER",
CommandLine.Type.STRING, true, false, true)
.withOption(null, DB_PASSWORD,
"password for the database", "PASSWORD",
CommandLine.Type.STRING, true, false, true);
}
示例9: provideParameterList
import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
return CommandLine.parser()
.withOption("t", TWEETS_PATH,
"specifies the directory from which to get a stream of tweets", "DIRECTORY",
CommandLine.Type.STRING, true, false, true)
.withOption("r", RESULTS_PATH,
"specifies the directory to which the results will be saved (in this case the db params are not required)", "DIRECTORY",
CommandLine.Type.STRING, true, false, true)
.withOption(null, LSA_PATH,
"path to LSA model", "DIRECTORY",
CommandLine.Type.STRING, true, false, true);
}
示例10: provideParameterList
import eu.fbk.utils.core.CommandLine; //导入方法依赖的package包/类
private static CommandLine.Parser provideParameterList() {
return CommandLine.parser()
.withOption("o", OUTPUT,
"output directory where to store the results", "DIRECTORY",
CommandLine.Type.STRING, true, false, true);
}