mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 14:20:21 +00:00
ArgsParser: Expand to be able to handle multiple single arguments
This is needed for e.g. ln
This commit is contained in:
parent
b92fa59832
commit
bffed9e3cb
Notes:
sideshowbarker
2024-07-19 14:04:05 +09:00
Author: https://github.com/rburchell
Commit: bffed9e3cb
Pull-request: https://github.com/SerenityOS/serenity/pull/50
5 changed files with 34 additions and 21 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue