1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

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

View file

@ -173,7 +173,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
.help_string = "Add a header entry to the request", .help_string = "Add a header entry to the request",
.long_name = "header", .long_name = "header",
.short_name = 'H', .short_name = 'H',
.value_name = "header-value", .value_name = "key:value",
.accept_value = [&](auto* s) { .accept_value = [&](auto* s) {
StringView header { s, strlen(s) }; StringView header { s, strlen(s) };
auto split = header.find(':'); auto split = header.find(':');