diff --git a/core/src/main/java/hudson/cli/CLICommand.java b/core/src/main/java/hudson/cli/CLICommand.java index aac456a99ae63eed5342993eb3ac147cf359d7d8..14dfdd323693b2a8269cde43d098a9050e73f5e8 100644 --- a/core/src/main/java/hudson/cli/CLICommand.java +++ b/core/src/main/java/hudson/cli/CLICommand.java @@ -311,6 +311,10 @@ public abstract class CLICommand implements ExtensionPoint, Cloneable { /** * Executes the command, and return the exit code. + * + *

+ * This is an internal contract between {@link CLICommand} and its subtype. + * To execute CLI method from outside, use {@link #main(List, Locale, InputStream, PrintStream, PrintStream)} * * @return * 0 to indicate a success, otherwise an error code.