mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-22 02:49:29 +03:00
pro: Add header format to argument help
This commit is contained in:
parent
ca134e8bfa
commit
d2171abb2c
Notes:
sideshowbarker
2024-07-17 09:48:50 +09:00
Author: https://github.com/winfr34k Commit: https://github.com/SerenityOS/serenity/commit/d2171abb2c Pull-request: https://github.com/SerenityOS/serenity/pull/16613 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/kuzux ✅
@ -173,7 +173,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
.help_string = "Add a header entry to the request",
|
||||
.long_name = "header",
|
||||
.short_name = 'H',
|
||||
.value_name = "header-value",
|
||||
.value_name = "key:value",
|
||||
.accept_value = [&](auto* s) {
|
||||
StringView header { s, strlen(s) };
|
||||
auto split = header.find(':');
|
||||
|
Loading…
Reference in New Issue
Block a user