2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

parser: cleanup/fix flagtable display for the warn, dump, and Optimize options

This changes the flagtable header from

     warn: --./apparmor_parser [Option]
     -O: --./apparmor_parser [Option]
     dump: --./apparmor_parser [Option]

  to
     ./apparmor_parser: --warn=[Option]
     ./apparmor_parser: -O [Option]
     ./apparmor_parser: --dump=[Option]

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/600
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen
2020-09-01 01:18:58 -07:00
parent 6e6f99e0b8
commit 9c1803d62a
2 changed files with 5 additions and 5 deletions

View File

@@ -169,10 +169,10 @@ void flagtable_help(const char *name, const char *header, const char *command,
optflag_table_t *table)
{
display_version();
printf("\n%s: --%s [Option]\n\n"
printf("\n%s: %s[Option]\n\n"
"%s"
"Options:\n"
"--------\n"
,name, command, header);
,command, name, header);
print_flag_table(table);
}