mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +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
5 changed files with 5 additions and 5 deletions
|
@ -18,7 +18,7 @@ constexpr unsigned encoded_device(unsigned major, unsigned minor)
|
|||
static int usage()
|
||||
{
|
||||
warnln("usage: mknod <name> <c|b|p> [<major> <minor>]");
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int main(int argc, char** argv)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue