1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

Userland: Convert delay option to unsigned for shot

A negative delay option for shot was used to underflow when passed to
sleep. Now, it returns an error for a negative delay value.
This commit is contained in:
Aziz Berkay Yesilyurt 2021-07-06 18:31:59 +02:00 committed by Ali Mohammad Pur
parent 7db3e962f3
commit 5fbb1d9e01

View file

@ -20,7 +20,7 @@ int main(int argc, char** argv)
String output_path; String output_path;
bool output_to_clipboard = false; bool output_to_clipboard = false;
int delay = 0; unsigned delay = 0;
int screen = -1; int screen = -1;
args_parser.add_positional_argument(output_path, "Output filename", "output", Core::ArgsParser::Required::No); args_parser.add_positional_argument(output_path, "Output filename", "output", Core::ArgsParser::Required::No);