zowe-cli
zowe-cli copied to clipboard
Unclear error messages for "unknown argument"
I attempted the following command:
$ zowe files delete ds "public.test.jcl" --fs
Command Error:
Unknown argument: fs
Command failed due to improper syntax
Command entered: "zowe files delete ds public.test.jcl --fs true"
Available commands are "data-set, data-set-vsam".
Use "zowe files delete --help" to view groups, commands, and options.
Error Details:
Unknown argument: fs
The ds
is correct (data-set
), however the --fs
should be -f
. The error message above with "available commands" doesn't correctly identify the situation that an option is incorrect. I would expect to be given the best match option or a list of available options, not the available commands (which I typed correctly).
Should we include options in the "levenshtein distance" calculation so that the Did you mean?
message can show more accurate suggestions ?
This enhancement has had no activity for 12 months. The issue also has less than 5 up-votes by the community. No action on this enhancement is targeted for the next 2 calendar quarters. Therefore, this enhancement is being closed. If you feel that this enhancement should continue to be available for community up-votes, you may reopen this issue.