mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibCore: Replace the ArgsParser option argument setting with an enum
Replacement conditions for `requires_argument` have been chosen based on what would be most convenient for implementing an eventual optional argument mode.
This commit is contained in:
parent
810b9daa63
commit
3d51642037
Notes:
sideshowbarker
2024-07-17 08:59:36 +09:00
Author: https://github.com/timschumi
Commit: 3d51642037
Pull-request: https://github.com/SerenityOS/serenity/pull/14571
Reviewed-by: https://github.com/linusg ✅
15 changed files with 59 additions and 53 deletions
|
@ -164,7 +164,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
args_parser.add_option(data, "(HTTP only) Send the provided data via an HTTP POST request", "data", 'd', "data");
|
||||
args_parser.add_option(should_follow_url, "(HTTP only) Follow the Location header if a 3xx status is encountered", "follow", 'l');
|
||||
args_parser.add_option(Core::ArgsParser::Option {
|
||||
.requires_argument = true,
|
||||
.argument_mode = Core::ArgsParser::OptionArgumentMode::Required,
|
||||
.help_string = "Add a header entry to the request",
|
||||
.long_name = "header",
|
||||
.short_name = 'H',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue