chres: Make screen an optional parameter
Most people have only one screen.
This commit is contained in:
parent
8cf348c14c
commit
1c69c686e3
Notes:
sideshowbarker
2024-07-18 09:24:48 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/1c69c686e32 Pull-request: https://github.com/SerenityOS/serenity/pull/8600
1 changed files with 2 additions and 2 deletions
|
@ -10,14 +10,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
int screen = -1;
|
||||
int screen = 0;
|
||||
int width = -1;
|
||||
int height = -1;
|
||||
int scale = -1;
|
||||
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.set_general_help("Change the screen resolution.");
|
||||
args_parser.add_positional_argument(screen, "Screen", "screen");
|
||||
args_parser.add_option(screen, "Screen", "screen", 's', "screen");
|
||||
args_parser.add_positional_argument(width, "Width", "width");
|
||||
args_parser.add_positional_argument(height, "Height", "height");
|
||||
args_parser.add_positional_argument(scale, "Scale Factor", "scale", Core::ArgsParser::Required::No);
|
||||
|
|
Loading…
Add table
Reference in a new issue