List of usage examples for org.apache.commons.cli Option setArgName
public void setArgName(String argName)
From source file:org.LexGrid.LexBIG.admin.LoadMetadata.java
/** * Return supported command options.//from ww w .j a v a 2 s .co m * * @return org.apache.commons.cli.Options */ private Options getCommandOptions() { Options options = new Options(); Option o; o = new Option("u", "urn", true, "URN uniquely identifying the code system."); o.setArgName("name"); o.setRequired(false); options.addOption(o); o = new Option("v", "version", true, "Version identifier."); o.setArgName("id"); o.setRequired(false); options.addOption(o); o = new Option("in", "input", true, "URI or path specifying location of the XML file."); o.setArgName("uri"); o.setRequired(true); options.addOption(o); o = new Option("v", "validate", true, "Validation only; no load. If specified, 'o' and 'f' " + "are ignored. 0 to verify the document is well-formed."); o.setArgName("int"); o.setRequired(false); options.addOption(o); o = new Option("o", "overwrite", false, "If specified, existing metadata for the code system " + "will be erased. Otherwise, new metadata will be appended " + "to existing metadata (if present). "); o.setRequired(false); options.addOption(o); o = new Option("f", "force", false, "Force overwrite (no confirmation)."); o.setRequired(false); options.addOption(o); return options; }
From source file:org.LexGrid.LexBIG.admin.LoadMrMap.java
/** * Return supported command options./*ww w .ja v a2 s . c om*/ * * @return org.apache.commons.cli.Options */ private Options getCommandOptions() { Options options = new Options(); Option o; o = new Option("inMap", "input", true, "URI or path specifying location of the source file."); o.setArgName("uri"); o.setRequired(true); options.addOption(o); o = new Option("inSat", "input", true, "URI or path specifying location of the source file."); o.setArgName("uri"); o.setRequired(true); options.addOption(o); return options; }
From source file:org.LexGrid.LexBIG.admin.LoadNCIHistory.java
/** * Return supported command options./* www.java 2 s.co m*/ * * @return org.apache.commons.cli.Options */ private Options getCommandOptions() { Options options = new Options(); Option o; o = new Option("in", "input", true, "URI or path specifying location of the source file."); o.setArgName("uri"); o.setRequired(true); options.addOption(o); o = new Option("vf", "versionFile", true, "URI or path specifying location of the file containing version " + "identifiers for the history to be loaded"); o.setArgName("uri"); o.setRequired(true); options.addOption(o); o = new Option("v", "validate", true, "Validation only; no load. If specified, 'r' " + "is ignored. 0 to verify 10 lines; 1 to check whole document."); o.setArgName("int"); o.setRequired(false); options.addOption(o); o = new Option("r", "replace", false, "If specified, the current history database is overwritten. " + "If not, history is added."); o.setRequired(false); options.addOption(o); return options; }
From source file:org.LexGrid.LexBIG.admin.LoadOBO.java
/** * Return supported command options./*from ww w. j a v a2s . c o m*/ * * @return org.apache.commons.cli.Options */ private Options getCommandOptions() { Options options = new Options(); Option o; o = new Option("in", "input", true, "URI or path specifying location of the source file."); o.setArgName("uri"); o.setRequired(true); options.addOption(o); o = new Option("mf", "manifest", true, "URI or path specifying location of the manifest file."); o.setArgName("uri"); o.setRequired(false); options.addOption(o); o = new Option("v", "validate", true, "Validation only; no load. If specified, 'a' and 't' " + "are ignored. 0 to verify the file conforms to the OBO format."); o.setArgName("int"); o.setRequired(false); options.addOption(o); o = new Option("a", "activate", false, "ActivateScheme on successful load; if unspecified the " + "vocabulary is loaded but not activated."); o.setRequired(false); options.addOption(o); o = new Option("t", "tag", true, "An optional tag ID (e.g. 'PRODUCTION' or 'TEST') to assign."); o.setArgName("id"); o.setRequired(false); options.addOption(o); return options; }
From source file:org.LexGrid.LexBIG.admin.LoadOWL.java
/** * Return supported command options.//from w w w . j a v a 2s . co m * * @return org.apache.commons.cli.Options */ private Options getCommandOptions() { Options options = new Options(); Option o; o = new Option("in", "input", true, "URI or path specifying location of the source file."); o.setArgName("uri"); o.setRequired(true); options.addOption(o); o = new Option("mf", "manifest", true, "URI or path specifying location of the manifest file."); o.setArgName("uri"); o.setRequired(false); options.addOption(o); o = new Option("lp", "loaderPrefs", true, "URI or path specifying location of the loader preference file."); o.setArgName("uri"); o.setRequired(false); options.addOption(o); o = new Option("v", "validate", true, "Validation only; no load. If specified, 'a' and 't' " + "are ignored. 0 to verify well-formed xml; 1 to check validity."); o.setArgName("int"); o.setRequired(false); options.addOption(o); o = new Option("ms", "memory setting", true, "If specified, indicates the profile " + "used for memory/performance tradeoffs. " + "1 for faster/more memory (holds OWL in memory); " + "2 for slower/less memory (cache OWL to database)"); o.setArgName("int"); o.setRequired(false); options.addOption(o); o = new Option("a", "activate", false, "ActivateScheme on successful load; if unspecified the " + "vocabulary is loaded but not activated."); o.setRequired(false); options.addOption(o); o = new Option("t", "tag", true, "An optional tag ID (e.g. 'PRODUCTION' or 'TEST') to assign."); o.setArgName("id"); o.setRequired(false); options.addOption(o); return options; }
From source file:org.LexGrid.LexBIG.admin.LoadOWL2.java
/** * Return supported command options.// ww w . j a v a 2 s . com * * @return org.apache.commons.cli.Options */ private Options getCommandOptions() { Options options = new Options(); Option o; o = new Option("in", "input", true, "URI or path specifying location of the source file."); o.setArgName("uri"); o.setRequired(true); options.addOption(o); o = new Option("mf", "manifest", true, "URI or path specifying location of the manifest file."); o.setArgName("uri"); o.setRequired(false); options.addOption(o); o = new Option("lp", "loaderPrefs", true, "URI or path specifying location of the loader preference file."); o.setArgName("uri"); o.setRequired(false); options.addOption(o); o = new Option("v", "validate", true, "Validation only; no load. If specified, 'a' and 't' " + "are ignored. 0 to verify well-formed xml; 1 to check validity."); o.setArgName("int"); o.setRequired(false); options.addOption(o); o = new Option("ms", "memory setting", true, "If specified, indicates the profile " + "used for memory/performance tradeoffs. " + "0 for faster/more memory (holds OWL in memory); " + "1 for slower/less memory (stream content to LexEVS DB)"); o.setArgName("int"); o.setRequired(false); options.addOption(o); o = new Option("a", "activate", false, "ActivateScheme on successful load; if unspecified the " + "vocabulary is loaded but not activated."); o.setRequired(false); options.addOption(o); o = new Option("t", "tag", true, "An optional tag ID (e.g. 'PRODUCTION' or 'TEST') to assign."); o.setArgName("id"); o.setRequired(false); options.addOption(o); return options; }
From source file:org.LexGrid.LexBIG.admin.LoadText.java
/** * Return supported command options.//from w w w .j a v a 2s . co m * * @return org.apache.commons.cli.Options */ private Options getCommandOptions() { Options options = new Options(); Option o; o = new Option("in", "input", true, "URI or path specifying location of the source file."); o.setArgName("uri"); o.setRequired(false); options.addOption(o); o = new Option("d", "delimiter", true, "Optional - defaults to tab the character used to delimit pair " + " or triple components and the nesting."); o.setArgName("d"); o.setRequired(false); options.addOption(o); o = new Option("mf", "manifest", true, "URI or path specifying location of the manifest file."); o.setArgName("uri"); o.setRequired(false); options.addOption(o); o = new Option("v", "validate", true, "Validation only; no load. If specified, 'a' and 't' " + "are ignored. 0 to verify the file conforms to the OBO format."); o.setArgName("int"); o.setRequired(false); options.addOption(o); o = new Option("a", "activate", false, "ActivateScheme on successful load; if unspecified the " + "vocabulary is loaded but not activated."); o.setRequired(false); options.addOption(o); o = new Option("t", "tag", true, "An optional tag ID (e.g. 'PRODUCTION' or 'TEST') to assign."); o.setArgName("id"); o.setRequired(false); options.addOption(o); return options; }
From source file:org.LexGrid.LexBIG.admin.LoadUMLSHistory.java
/** * Return supported command options.//from ww w . j ava 2 s .c o m * * @return org.apache.commons.cli.Options */ private Options getCommandOptions() { Options options = new Options(); Option o; o = new Option("in", "input", true, "URI or path specifying location of the source files."); o.setArgName("uri"); o.setRequired(true); options.addOption(o); o = new Option("v", "validate", true, "Validation only; no load. If specified, 'r' is ignored."); o.setArgName("int"); o.setRequired(false); options.addOption(o); o = new Option("r", "replace", true, "If specified, the current history database is overwritten. " + "If not, history is added."); o.setRequired(false); options.addOption(o); return options; }
From source file:org.LexGrid.LexBIG.admin.LoadUMLSSemnet.java
/** * Return supported command options.// ww w . j a v a2 s .c o m * * @return org.apache.commons.cli.Options */ private Options getCommandOptions() { Options options = new Options(); Option o; o = new Option("in", "input", true, "URI or path specifying the directory containing the NLM files."); o.setArgName("uri"); o.setRequired(true); options.addOption(o); o = new Option("mf", "manifest", true, "URI or path specifying location of the manifest file."); o.setArgName("uri"); o.setRequired(false); options.addOption(o); o = new Option("il", "InheritanceLevel", true, "If specified, indicates the extent of inherited relationships to import. " + "0 = none; 1 = all; 2 = all except is_a (default). " + "All direct relationships are imported, regardless of option."); o.setArgName("uri"); o.setRequired(false); options.addOption(o); o = new Option("a", "activate", false, "ActivateScheme on successful load; if unspecified the " + "vocabulary is loaded but not activated."); o.setRequired(false); options.addOption(o); o = new Option("t", "tag", true, "An optional tag ID (e.g. 'PRODUCTION' or 'TEST') to assign."); o.setArgName("id"); o.setRequired(false); options.addOption(o); return options; }
From source file:org.LexGrid.LexBIG.admin.PasswordEncryptor.java
/** * Return supported command options.// w ww . j a v a2 s. co m * * @return org.apache.commons.cli.Options */ private static Options getCommandOptions() { Options options = new Options(); Option o; o = new Option("p", "password", true, "Password for encryption."); o.setArgName("password"); o.setRequired(true); options.addOption(o); return options; }