diff options
author | Nico Weber <thakis@chromium.org> | 2021-07-09 21:10:11 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-10 18:51:14 +0100 |
commit | 1c69c686e3261eff305669e9c2afe4fc5da5ba77 (patch) | |
tree | 90584b240d23bacd3bfea4398d059a321d24c3d6 /Userland/Utilities/chres.cpp | |
parent | 8cf348c14c217145f43efd8b54ddf39b165fb04d (diff) | |
download | serenity-1c69c686e3261eff305669e9c2afe4fc5da5ba77.zip |
chres: Make screen an optional parameter
Most people have only one screen.
Diffstat (limited to 'Userland/Utilities/chres.cpp')
-rw-r--r-- | Userland/Utilities/chres.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/chres.cpp b/Userland/Utilities/chres.cpp index 27a77e7c90..17d3d8e1f6 100644 --- a/Userland/Utilities/chres.cpp +++ b/Userland/Utilities/chres.cpp @@ -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); |