CommandArgumentNotProvided
error when argRequired
is set to false
#4
Labels
CommandArgumentNotProvided
error when argRequired
is set to false
#4
Hi, I want to show a help message when no arguments are passed or the "-h" flag is passed.
I set the
argRequired
option to false, but it returned an error when no arguments passed.env
Current behavior
Expected behavior
no error when "argRequired" is false.
I guess the issue comes from around here. It should take care of this situation and suppress the error when "argRequired" is false.
https://github.com/PrajwalCH/yazap/blob/4153a51dea5f1c3771a85fbff1b9b330988a73db/src/parser/Parser.zig#L413-L415
The text was updated successfully, but these errors were encountered: