1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

ArgsParser: Expand to be able to handle multiple single arguments

This is needed for e.g. ln
This commit is contained in:
Robin Burchell 2019-05-17 15:17:43 +02:00 committed by Andreas Kling
parent b92fa59832
commit bffed9e3cb
5 changed files with 34 additions and 21 deletions

View file

@ -107,7 +107,7 @@ int main(int argc, char** argv)
AK::ArgsParser args_parser("sysctl");
args_parser.add_arg("a", "show all variables");
args_parser.set_single_value("variable=[value]");
args_parser.add_single_value("variable=[value]");
AK::ArgsParserResult args = args_parser.parse(argc, (const char**)argv);