Registers a subcommand with the name obtained from the @Command(name = "...") plain Command#name() annotation attribute of the specified command. @param command the object to initialize with command line arguments following the subcommand name. This may be a {@code Clas
(Object command)
| 303 | * of the specified subcommand was already used by another subcommand. |
| 304 | * @see #addSubcommand(String, Object) */ |
| 305 | public CommandLine addSubcommand(Object command) { |
| 306 | return addSubcommand(null, command, new String[0]); |
| 307 | } |
| 308 | |
| 309 | /** Registers a subcommand with the specified name. For example: |
| 310 | * <pre> |