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:
parent
b92fa59832
commit
bffed9e3cb
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