AntelopeIO / leap

C++ implementation of the Antelope protocol
Other
116 stars 68 forks source link

Revert cleos error output (display help text by default) #162

Closed michaeljyeates closed 1 year ago

michaeljyeates commented 2 years ago

In the early days cleos would display an error followed by the help text, now it doesnt show help and you have to type --help. The old functionality was much better when you need to quickly show help or have to check the meaning of a missing parameter

heifner commented 2 years ago

@766C6164 I agree the old way was nicer.

vladtr commented 2 years ago

I am working on new leap-util utility and will be revisiting cleos as well, which will get:

I believe when user missed required subcommand or option/flag on any level and app produces error it will be very helpful indeed to show help snippet for particular subcommand.

@michaeljyeates, @heifner - please if you have any suggestions on best expected cli app behavior, I would really appreciate it!

heifner commented 2 years ago

I believe when user missed required subcommand or option/flag on any level and app produces error it will be very helpful indeed to show help snippet for particular subcommand.

I agree showing the help for a sub-command when required args not provided would be a good thing.

stephenpdeos commented 1 year ago

Resolved by https://github.com/AntelopeIO/leap/pull/407