Closed Tyrrrz closed 4 years ago
Related to #48
At first look, it looks like we want to augment all the new CliFxException(...)
s in the "End-user-facing exceptions" partial section of CliFxException
with the showHelp
parameter of #49 to fulfill this feature.
@Tyrrrz, do you agree? Are there any other locations where we might need to show help as a result of handling an error?
Yeah, that's right. Seems like all those exceptions could be accompanied with help text.
Cool, I'll get you a PR in the near future :)
Go ahead :)
Exceptions related to user input should probably trigger help automatically so that besides being told "you didn't specify option
--required
" the user will also be shown what that option actually is.Possibly also extend
CommandException
so that it's possible to request help when throwing that exception.