Move the option name to an argument to reuse existing translations.
@@ -200,7 +200,8 @@ main(int argc, const char *const *argv)
if (f_check) {
if (*argv)
- badusage(_("--check-supported takes no arguments"));
+ badusage(_("--%s takes no arguments"),
+ "check-supported");
do_check();
}
@@ -98,7 +98,8 @@ void updateavailable(const char *const *argv) {
void forgetold(const char *const *argv) {
- if (*argv) badusage(_("--forget-old-unavail takes no arguments"));
+ if (*argv)
+ badusage(_("--%s takes no arguments"), cipaction->olong);
warning(_("obsolete '--%s' option, unavailable packages are automatically cleaned up."),
cipaction->olong);