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:
parent
7db3e962f3
commit
5fbb1d9e01
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue