MCPcopy
hub / github.com/remkop/picocli / addSubcommand

Method addSubcommand

src/main/java/picocli/CommandLine.java:305–307  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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>

Calls 3

toCommandLineMethod · 0.95
getCommandSpecMethod · 0.95
addAllMethod · 0.45