ZOSOpenTools / meta

Meta repository to tie together the various underlying z/OS Open Source tools repositories here
https://zosopentools.github.io/meta/
Apache License 2.0
37 stars 25 forks source link

Should zopen config with no options display help or list all of the configuration variables? #789

Open IgorTodorovskiIBM opened 2 weeks ago

IgorTodorovskiIBM commented 2 weeks ago

Currently getting:

 zopen config
***ERROR: No option provided for cleaning

FYI @DevonianTeuchter

lbdyck commented 2 weeks ago

That would be nice :)

check the zothelper under the prompters repo

DevonianTeuchter commented 2 weeks ago

whatever it does, it shouldn't say cleaning! The intention was to be consistent with other zopen verbs...

IBMUSER:/u/ibmuser #>zopen query
***ERROR: No option provided for query
IBMUSER:/u/ibmuser #>zopen clean
***ERROR: No option provided for cleaning
IBMUSER:/u/ibmuser #>zopen alt
***ERROR: Missing program argument

Just trying to find other examples to see what might be a consistent solution:

$:git config<CR>    [displays a cutdown help, with --help displaying more detail
$:pip config<CR>
ERROR: Need an action (debug, edit, get, list, set, unset) to perform.
$:npm config<CR>  - displays an oddly formatted help, with more detailed using --help]

For zopen consistency, I'd say report an error, but could be swayed if there was a strong argument for something else!

IgorTodorovskiIBM commented 2 weeks ago

whatever it does, it shouldn't say cleaning! The intention was to be consistent with other zopen verbs...

IBMUSER:/u/ibmuser #>zopen query
***ERROR: No option provided for query
IBMUSER:/u/ibmuser #>zopen clean
***ERROR: No option provided for cleaning
IBMUSER:/u/ibmuser #>zopen alt
***ERROR: Missing program argument

Just trying to find other examples to see what might be a consistent solution:

$:git config<CR>    [displays a cutdown help, with --help displaying more detail
$:pip config<CR>
ERROR: Need an action (debug, edit, get, list, set, unset) to perform.
$:npm config<CR>  - displays an oddly formatted help, with more detailed using --help]

For zopen consistency, I'd say report an error, but could be swayed if there was a strong argument for something else!

Perhaps we can enhance the messages with:

No option provided for config. Specify --help to view all available options.