pro: Add header format to argument help

This commit is contained in:
Thomas Keppler 2022-12-21 16:11:36 +01:00 committed by Ali Mohammad Pur
parent ca134e8bfa
commit d2171abb2c
Notes: sideshowbarker 2024-07-17 09:48:50 +09:00

View File

@ -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(':');