List of usage examples for org.apache.commons.cli OptionBuilder hasArg
public static OptionBuilder hasArg()
From source file:org.cosysoft.dcm.tool.FindSCUTool.java
@SuppressWarnings("static-access") private static void addServiceClassOptions(Options opts) { opts.addOption(/*from w w w.java 2s . c o m*/ OptionBuilder.hasArg().withArgName("name").withDescription(rb.getString("model")).create("M")); CLIUtils.addTransferSyntaxOptions(opts); opts.addOption(null, "relational", false, rb.getString("relational")); opts.addOption(null, "datetime", false, rb.getString("datetime")); opts.addOption(null, "fuzzy", false, rb.getString("fuzzy")); opts.addOption(null, "timezone", false, rb.getString("timezone")); }
From source file:org.cosysoft.dcm.tool.FindSCUTool.java
@SuppressWarnings("static-access") private static void addQueryLevelOption(Options opts) { opts.addOption(OptionBuilder.hasArg().withArgName("PATIENT|STUDY|SERIES|IMAGE") .withDescription(rb.getString("level")).create("L")); }
From source file:org.cosysoft.dcm.tool.MoveSCUTool.java
@SuppressWarnings("static-access") private static void addRetrieveLevelOption(Options opts) { opts.addOption(OptionBuilder.hasArg().withArgName("PATIENT|STUDY|SERIES|IMAGE|FRAME") .withDescription(rb.getString("level")).create("L")); }
From source file:org.cosysoft.dcm.tool.MoveSCUTool.java
@SuppressWarnings("static-access") private static void addServiceClassOptions(Options opts) { opts.addOption(/*from w w w. j a v a 2 s. c o m*/ OptionBuilder.hasArg().withArgName("name").withDescription(rb.getString("model")).create("M")); CLIUtils.addTransferSyntaxOptions(opts); opts.addOption(null, "relational", false, rb.getString("relational")); }
From source file:org.dcm4che.tool.common.CLIUtils.java
@SuppressWarnings("static-access") public static void addBindOption(Options opts, String defAET) { opts.addOption(OptionBuilder.hasArg().withArgName("aet[@ip][:port]") .withDescription(MessageFormat.format(rb.getString("bind"), defAET)).withLongOpt("bind") .create("b")); }
From source file:org.dcm4che.tool.common.CLIUtils.java
@SuppressWarnings("static-access") public static void addBindServerOption(Options opts) { opts.addOption(OptionBuilder.hasArg().withArgName("[aet[@ip]:]port") .withDescription(rb.getString("bind-server")).withLongOpt("bind").create("b")); addRequestTimeoutOption(opts);//from www.j a v a2 s .c o m }
From source file:org.dcm4che.tool.common.CLIUtils.java
@SuppressWarnings("static-access") public static void addConnectOption(Options opts) { opts.addOption(OptionBuilder.hasArg().withArgName("aet@host:port").withDescription(rb.getString("connect")) .withLongOpt("connect").create("c")); opts.addOption(OptionBuilder.hasArg().withArgName("[user:password@]host:port") .withDescription(rb.getString("proxy")).withLongOpt("proxy").create(null)); opts.addOption(OptionBuilder.hasArg().withArgName("name").withDescription(rb.getString("user")) .withLongOpt("user").create(null)); opts.addOption(OptionBuilder.hasArg().withArgName("password").withDescription(rb.getString("user-pass")) .withLongOpt("user-pass").create(null)); opts.addOption(null, "user-rsp", false, rb.getString("user-rsp")); addConnectTimeoutOption(opts);//from w ww . j a v a 2 s . co m addAcceptTimeoutOption(opts); }
From source file:org.dcm4che.tool.common.CLIUtils.java
@SuppressWarnings("static-access") public static void addAEOptions(Options opts) { opts.addOption(OptionBuilder.hasArg().withArgName("length").withDescription(rb.getString("max-pdulen-rcv")) .withLongOpt("max-pdulen-rcv").create(null)); opts.addOption(OptionBuilder.hasArg().withArgName("length").withDescription(rb.getString("max-pdulen-snd")) .withLongOpt("max-pdulen-snd").create(null)); opts.addOption(OptionBuilder.hasArg().withArgName("no").withDescription(rb.getString("max-ops-invoked")) .withLongOpt("max-ops-invoked").create(null)); opts.addOption(OptionBuilder.hasArg().withArgName("no").withDescription(rb.getString("max-ops-performed")) .withLongOpt("max-ops-performed").create(null)); opts.addOption(null, "not-async", false, rb.getString("not-async")); opts.addOption(null, "not-pack-pdv", false, rb.getString("not-pack-pdv")); opts.addOption(OptionBuilder.hasArg().withArgName("ms").withDescription(rb.getString("idle-timeout")) .withLongOpt("idle-timeout").create(null)); opts.addOption(OptionBuilder.hasArg().withArgName("ms").withDescription(rb.getString("release-timeout")) .withLongOpt("release-timeout").create(null)); opts.addOption(OptionBuilder.hasArg().withArgName("ms").withDescription(rb.getString("soclose-delay")) .withLongOpt("soclose-delay").create(null)); addSocketOptions(opts);/* w w w. ja va 2 s. c om*/ addTLSOptions(opts); }
From source file:org.dcm4che.tool.common.CLIUtils.java
@SuppressWarnings("static-access") public static void addRequestTimeoutOption(Options opts) { opts.addOption(OptionBuilder.hasArg().withArgName("ms").withDescription(rb.getString("request-timeout")) .withLongOpt("request-timeout").create(null)); }
From source file:org.dcm4che.tool.common.CLIUtils.java
@SuppressWarnings("static-access") public static void addAcceptTimeoutOption(Options opts) { opts.addOption(OptionBuilder.hasArg().withArgName("ms").withDescription(rb.getString("accept-timeout")) .withLongOpt("accept-timeout").create(null)); }