mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
Userland: Make test exit 1 silently when no arguments are given
This commit is contained in:
parent
acfae91032
commit
16fd5753eb
1 changed files with 4 additions and 0 deletions
|
@ -521,6 +521,10 @@ int main(int argc, char* argv[])
|
|||
argv[argc] = nullptr;
|
||||
}
|
||||
|
||||
// Exit false when no arguments are given.
|
||||
if (argc == 1)
|
||||
return 1;
|
||||
|
||||
auto condition = parse_complex_expression(argv);
|
||||
if (optind != argc - 1)
|
||||
fatal_error("Too many arguments");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue