@CliCommand(value = DESTROY_TASK_ALL, help = "Destroy all existing tasks") public String destroyAll( @CliOption(key = "force", help = "bypass confirmation prompt", unspecifiedDefaultValue = "false", specifiedDefaultValue = "true") boolean force) { if (force || "y".equalsIgnoreCase(userInput.promptWithOptions("Really destroy all tasks?", "n", "y", "n"))) { taskOperations().destroyAll(); return String.format("All tasks destroyed"); } else { return ""; } }