]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
rfkill: cleanup usage()
authorKarel Zak <kzak@redhat.com>
Thu, 31 Aug 2017 08:31:21 +0000 (10:31 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 31 Aug 2017 08:31:21 +0000 (10:31 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/rfkill.c

index 08002b44f0eea7a4db828eef27a410369a8a5b23..7a32c70b298dc48211836234dc7e8e8977edd4d4 100644 (file)
@@ -454,15 +454,14 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -r, --raw              use the raw output format\n"), stdout);
 
        fputs(USAGE_SEPARATOR, stdout);
-       print_usage_help_options(24);
+       printf(USAGE_HELP_OPTIONS(24));
 
-       fputs(USAGE_SEPARATOR, stdout);
-       fputs(_("Available columns:\n"), stdout);
+       fputs(USAGE_COLUMNS, stdout);
        for (i = 0; i < ARRAY_SIZE(infos); i++)
                fprintf(stdout, " %-6s  %s\n", infos[i].name, _(infos[i].help));
 
-       fputs(USAGE_SEPARATOR, stdout);
-       fputs(_("Commands:\n"), stdout);
+       fputs(USAGE_COMMANDS, stdout);
+
        /*
         * TRANSLATORS: command names should not be translated, explaining
         * them as additional field after identifer is fine, for example