mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
Userland: Return 1 when help text is shown for insufficient args
ArgsParser also does this, but we don't use that (yet) in a couple of places. Fix the behaviour manually for consistency.
This commit is contained in:
parent
f5c35fccca
commit
2a940464b8
Notes:
sideshowbarker
2024-07-18 17:02:33 +09:00
Author: https://github.com/linusg
Commit: 2a940464b8
Pull-request: https://github.com/SerenityOS/serenity/pull/7632
Reviewed-by: https://github.com/awesomekling
5 changed files with 5 additions and 5 deletions
|
@ -16,7 +16,7 @@ int main(int argc, char** argv)
|
|||
{
|
||||
if (argc < 3) {
|
||||
warnln("usage: flock <path> <command...>");
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
pid_t child_pid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue