Closed vivekashok1221 closed 3 years ago
Thanks. Could you also capitalize the description, so it doesn’t start with a lowercase letter?
Thanks. Could you also capitalize the description, so it doesn’t start with a lowercase letter?
Yeah, I thought of that. I think rather than capitalizing, formatting the parameter (language
in this case) with backticks is more appropriate. So the description would be "language
is a missing required argument which is missing."
Or, we could alter the entire sentence structure.
There are two ways this can be carried out.
1) Get the error in str
and format the first word (This is assuming the first word will be the parameter)
2) I believe MissingRequriedArgument can provide you with the missing argument and we should construct a message accordingly.
Both are easy to implement.
Rather than capitalising, I decided to format the missing argument with a single line code-block. Feel free to suggest changes.
Yeah that looks better.
Can we merge this as it is a high priority feature?
it is a high priority feature?
@Shivansh-007 Well, yeah, it's currently one of the most important features on gurkbot, but it's not per say a high priority feature. We have a label for that, and this one does not warrant it.
UserInputError
has been made part of theif-elif
block. This should fix issue #76.Additionally,
MissingRequiredArgument
now shows a different message. old:now: