Add a boolean option that enables something. @param shortName the short single character name of the option (no `-` character proceeds it). @param longName the multi character name of the option (no `--` characters proceed it). @return a builder to be used to continue creating the command line.
(String shortName, String longName)
| 301 | * @return a builder to be used to continue creating the command line. |
| 302 | */ |
| 303 | public CLIBuilder boolOpt(String shortName, String longName) { |
| 304 | opts.add(new Opt(shortName, longName, false, null, null, true)); |
| 305 | return this; |
| 306 | } |
| 307 | |
| 308 | /** |
| 309 | * Add a named argument. |