From 008bb9db6541782288138923feedb6b2fe9481b3 Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Wed, 18 May 2011 13:05:24 +0200 Subject: [PATCH] [FIXED JENKINS-6958] Make name parameter of create-job mandatory. --- core/src/main/java/hudson/cli/CreateJobCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/cli/CreateJobCommand.java b/core/src/main/java/hudson/cli/CreateJobCommand.java index 3f0c522c02..f640ae61a5 100644 --- a/core/src/main/java/hudson/cli/CreateJobCommand.java +++ b/core/src/main/java/hudson/cli/CreateJobCommand.java @@ -40,7 +40,7 @@ public class CreateJobCommand extends CLICommand { return "Creates a new job by reading stdin as a configuration XML file"; } - @Argument(metaVar="NAME",usage="Name of the job to create") + @Argument(metaVar="NAME",usage="Name of the job to create",required=true) public String name; protected int run() throws Exception { -- GitLab