diff --git a/src/main/java/org/rundeck/client/tool/commands/Keys.java b/src/main/java/org/rundeck/client/tool/commands/Keys.java index f171ec68..a055dfa3 100644 --- a/src/main/java/org/rundeck/client/tool/commands/Keys.java +++ b/src/main/java/org/rundeck/client/tool/commands/Keys.java @@ -76,12 +76,9 @@ interface PathArgs { @Option(shortName = "p", longName = "path", - description = "Storage path, default: keys/", - defaultValue = "keys/") + description = "Storage path in the form 'path/to/file', or 'keys/path/to/file'.", + defaultToNull = true) Path getPath(); - - @Unparsed(defaultToNull = true, description = "Storage path", name = "PATH") - Path getPath2(); } @CommandLineInterface(application = "list") interface ListArg extends PathArgs { @@ -110,7 +107,7 @@ public boolean list(ListArg options, CommandOutput output) throws IOException, I } private Path argPath(final PathArgs options) { - return options.getPath2() != null ? options.getPath2() : options.getPath(); + return options.getPath(); } @CommandLineInterface(application = "info") interface Info extends PathArgs {