summaryrefslogtreecommitdiff
path: root/src/query.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/query.c')
-rw-r--r--src/query.c35
1 files changed, 21 insertions, 14 deletions
diff --git a/src/query.c b/src/query.c
index d0bc00e76..f49a0990a 100644
--- a/src/query.c
+++ b/src/query.c
@@ -476,22 +476,29 @@ static void printversion(void) {
static void usage(void) {
if (printf(_(
"Usage: %s [<option> ...] <command>\n"
-"\n"
+"\n"), DPKGQUERY) < 0) werr ("stdout");
+
+ if (printf(_(
"Commands:\n"
-" -s|--status <package-name> ... Display package status details.\n"
-" -p|--print-avail <package-name> ... Display available version details.\n"
-" -L|--listfiles <package-name> ... List files `owned' by package(s).\n"
-" -l|--list [<pattern> ...] List packages concisely.\n"
-" -W|--show <pattern> ... Show information on package(s).\n"
-" -S|--search <pattern> ... Find package(s) owning file(s).\n"
-" --help Show this help message.\n"
-" --version Show the version.\n"
-" --license | --licence Show the copyright licensing terms.\n"
-"\n"
+" -s|--status <package> ... Display package status details.\n"
+" -p|--print-avail <package> ... Display available version details.\n"
+" -L|--listfiles <package> ... List files `owned' by package(s).\n"
+" -l|--list [<pattern> ...] List packages concisely.\n"
+" -W|--show <pattern> ... Show information on package(s).\n"
+" -S|--search <pattern> ... Find package(s) owning file(s).\n"
+"\n")) < 0) werr ("stdout");
+
+ if (printf(_(
+" -h|--help Show this help message.\n"
+" --version Show the version.\n"
+" --license|--licence Show the copyright licensing terms.\n"
+"\n")) < 0) werr ("stdout");
+
+ if (printf(_(
"Options:\n"
-" --admindir=<directory> Use <directory> instead of %s.\n"
-" -f|--showformat=<format> Use alternative format for --show.\n"
-"\n"), DPKGQUERY, ADMINDIR) < 0) werr ("stdout");
+" --admindir=<directory> Use <directory> instead of %s.\n"
+" -f|--showformat=<format> Use alternative format for --show.\n"
+"\n"), ADMINDIR) < 0) werr ("stdout");
if (printf(_(
"Format syntax:\n"