kolibri cli returns exit code 1 if not parameter is passed#5937
Conversation
Codecov Report
|
benjaoming
left a comment
There was a problem hiding this comment.
Thanks @jredrejo - the new behavior is nice and explicit! 👍
|
Is this usual behaviour for help text? I can't check on my computer right now, but does just I looked at the original issue here and couldn't quite follow why this change was needed. |
|
@rtibbles you are asking the same question I did in the original issue. I checked it and @benjaoming was right. All the apps I could test return a non-zero error code when they show help after being executed without any parameter. For your examples, git returns |
|
Righto, sounds like we should file an upstream issue with Click too! |
|
Great idea @rtibbles - hereby reported, as I couldn't find any existing issue. |
Summary
When
kolibricli is run without any options it retuns the help system and exit code1Reviewer guidance
Run
kolibriwithout any optionIt should return kolibri help
Executing
echo $?should return1Run
kolibriwith any valid option (ex.kolibri stop)Executing
echo $?should return0References
Closes: #5930
Contributor Checklist
PR process:
Testing:
Reviewer Checklist
yarnandpip)