01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.simulator.container;
05:
06: import org.apache.commons.cli.Option;
07: import org.apache.commons.cli.OptionBuilder;
08:
09: class OptionMaker {
10:
11: public OptionMaker withLongOpt(String opt) {
12: OptionBuilder.withLongOpt(opt);
13: return this ;
14: }
15:
16: public OptionMaker withValueSeparator() {
17: OptionBuilder.withValueSeparator();
18: return this ;
19: }
20:
21: public OptionMaker isRequired() {
22: OptionBuilder.isRequired();
23: return this ;
24: }
25:
26: public OptionMaker withArgName(String name) {
27: OptionBuilder.withArgName(name);
28: return this ;
29: }
30:
31: public OptionMaker withDescription(String desc) {
32: OptionBuilder.withDescription(desc);
33: return this ;
34: }
35:
36: public OptionMaker withValueSeparator(char sep) {
37: OptionBuilder.withValueSeparator(sep);
38: return this ;
39: }
40:
41: public OptionMaker hasArg() {
42: OptionBuilder.hasArg();
43: return this ;
44: }
45:
46: public Option create() {
47: return OptionBuilder.create();
48: }
49:
50: public Option create(char c) {
51: return OptionBuilder.create(c);
52: }
53: }
|