Hi,

The command code (I hope Groovy is ok for this thread)
@Autowired
private Shell shell

@CliCommand(value = "x", help = "x help")
public String x(
@CliOption(key = [ "message" ], mandatory = true, help = "The hello world message") final String message) {
shell.flash(Level.INFO, 'flash', 'x')
Thread.sleep(150)
println 'that worked'
return "Message = $message"
}


Works when I execute the command x in the shell, however I get an NPE when I run my application from the command line with x as an argument.

I am running a modified version of the helloworld example at version 324b3ef.

Thanks,

Peter