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

Userland: Write some '--help' descriptions where appropriate

This commit is contained in:
Ben Wiederhake 2020-12-05 16:22:58 +01:00 committed by Andreas Kling
parent 52a8062084
commit 4ec77ba929
32 changed files with 47 additions and 4 deletions

View file

@ -45,6 +45,7 @@ static Options parse_options(int argc, char* argv[])
Vector<const char*> text;
Core::ArgsParser args_parser;
args_parser.set_general_help("Copy text from stdin or the command-line to the clipboard.");
args_parser.add_option(type, "Pick a type", "type", 't', "type");
args_parser.add_positional_argument(text, "Text to copy", "text", Core::ArgsParser::Required::No);
args_parser.parse(argc, argv);