1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +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

@ -79,7 +79,7 @@ int main(int argc, char *argv[])
args_parser.add_arg("f", "follow -- appended data is output as it is written to the file");
args_parser.add_arg("n", "lines", "fetch the specified number of lines");
args_parser.set_required_single_value("file");
args_parser.add_required_single_value("file");
AK::ArgsParserResult args = args_parser.parse(argc, (const char**)argv);