1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +00:00

Meta: Scale back overly informal user-facing strings

We were getting a little overly memey in some places, so let's scale
things back to business-casual.

Informal language is fine in comments, commits and debug logs,
but let's keep the runtime nice and presentable. :^)
This commit is contained in:
Andreas Kling 2020-06-17 18:20:28 +02:00
parent d7bf609376
commit 723f4e5ee6
8 changed files with 15 additions and 33 deletions

View file

@ -190,7 +190,7 @@ int OptionParser::handle_short_option()
bool ok = lookup_short_option(option, needs_value);
if (!ok) {
optopt = option;
report_error("Unrecognized option \033[1m-%c\033[22m, dude", option);
report_error("Unrecognized option \033[1m-%c\033[22m", option);
return '?';
}
@ -218,7 +218,7 @@ int OptionParser::handle_short_option()
optarg = m_argv[m_arg_index + 1];
m_consumed_args = 2;
} else {
report_error("Missing value for option \033[1m-%c\033[22m, dude", option);
report_error("Missing value for option \033[1m-%c\033[22m", option);
return '?';
}
}
@ -266,7 +266,7 @@ int OptionParser::handle_long_option()
auto* option = lookup_long_option(m_argv[m_arg_index] + 2);
if (!option) {
report_error("Unrecognized option \033[1m%s\033[22m, dude", m_argv[m_arg_index]);
report_error("Unrecognized option \033[1m%s\033[22m", m_argv[m_arg_index]);
return '?';
}
// lookup_long_option() will also set optarg if the value of the option is
@ -278,7 +278,7 @@ int OptionParser::handle_long_option()
switch (option->has_arg) {
case no_argument:
if (optarg) {
report_error("Option \033[1m--%s\033[22m doesn't accept an argument, dude", option->name);
report_error("Option \033[1m--%s\033[22m doesn't accept an argument", option->name);
return '?';
}
m_consumed_args = 1;
@ -295,7 +295,7 @@ int OptionParser::handle_long_option()
optarg = m_argv[m_arg_index + 1];
m_consumed_args = 2;
} else {
report_error("Missing value for option \033[1m--%s\033[22m, dude", option->name);
report_error("Missing value for option \033[1m--%s\033[22m", option->name);
return '?';
}
break;