diff options
Diffstat (limited to 'src/hwdb')
-rw-r--r-- | src/hwdb/hwdb.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/hwdb/hwdb.c b/src/hwdb/hwdb.c index b069a3eb8a..651647b3f0 100644 --- a/src/hwdb/hwdb.c +++ b/src/hwdb/hwdb.c @@ -9,6 +9,7 @@ #include "main-func.h" #include "pretty-print.h" #include "selinux-util.h" +#include "terminal-util.h" #include "util.h" #include "verbs.h" @@ -32,18 +33,21 @@ static int help(void) { if (r < 0) return log_oom(); - printf("%s OPTIONS COMMAND\n\n" - "Update or query the hardware database.\n\n" + printf("%s [OPTIONS...] COMMAND ...\n\n" + "%sUpdate or query the hardware database.%s\n" + "\nCommands:\n" + " update Update the hwdb database\n" + " query MODALIAS Query database and print result\n" + "\nOptions:\n" " -h --help Show this help\n" " --version Show package version\n" " -s --strict When updating, return non-zero exit value on any parsing error\n" " --usr Generate in " UDEVLIBEXECDIR " instead of /etc/udev\n" " -r --root=PATH Alternative root path in the filesystem\n\n" - "Commands:\n" - " update Update the hwdb database\n" - " query MODALIAS Query database and print result\n" "\nSee the %s for details.\n" , program_invocation_short_name + , ansi_highlight() + , ansi_normal() , link ); |