zowe-cli icon indicating copy to clipboard operation
zowe-cli copied to clipboard

Unclear error messages for "unknown argument"

Open tucker01 opened this issue 6 years ago • 1 comments

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).

tucker01 avatar Jan 29 '19 15:01 tucker01

Should we include options in the "levenshtein distance" calculation so that the Did you mean? message can show more accurate suggestions ?

zFernand0 avatar Aug 12 '22 18:08 zFernand0

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.

gejohnston avatar Oct 11 '22 13:10 gejohnston