zowe / zowe-cli

Zowe CLI
Eclipse Public License 2.0
108 stars 85 forks source link

Update CLI help text for invalid option error #2138

Closed t1m0thyj closed 1 month ago

t1m0thyj commented 1 month ago

When running a command with an invalid option such as zowe files ls ds --protocol invalid, the error message says:

The value must match one of the following regular expressions:

Although regexes are supported here, in many cases the values are simple strings rather than regexes. So we want to simplify the wording to say "the following options" instead of "the following regular expressions".

To make this change, wording needs to be updated here and any failing snapshots will need to updated: https://github.com/zowe/zowe-cli/blob/11c8edc6d557799cfcc3d955e0c94bdad059dadd/packages/imperative/src/cmd/src/syntax/SyntaxValidator.ts#L847

github-actions[bot] commented 1 month ago

Thank you for raising this enhancement request. The community has 90 days to vote on it. If the enhancement receives at least 5 upvotes, it is added to our development backlog. If it receives fewer votes, the issue is closed.

jace-roell commented 1 month ago

👍