| author | Guillem Jover <guillem@debian.org> | |
| Thu, 3 Mar 2011 17:41:58 +0000 (18:41 +0100) | ||
| committer | Guillem Jover <guillem@debian.org> | |
| Thu, 3 Mar 2011 17:56:53 +0000 (18:56 +0100) |
Do that in the --help output and in the man page.
| debian/changelog | patch | blob | history | |
| man/dpkg-query.1 | patch | blob | history | |
| src/querycmd.c | patch | blob | history |
diff --git a/debian/changelog b/debian/changelog
--- a/debian/changelog
+++ b/debian/changelog
* Sync the info database directory on unpack instead of the temporary
control information directory, and print the correct pathname on error
instead of the last file acted on that directory.
+ * Document in dpkg-query --help output and man page that --list and --show
+ arguments are optionsl.
[ Raphaƫl Hertzog ]
* Fail properly when debian/source/format is empty. Closes: #600854
diff --git a/man/dpkg-query.1 b/man/dpkg-query.1
--- a/man/dpkg-query.1
+++ b/man/dpkg-query.1
.
.SH COMMANDS
.TP
-.BR \-l ", " \-\-list " \fIpackage-name-pattern\fP..."
+.BR \-l ", " \-\-list " [\fIpackage-name-pattern\fP...]"
List packages matching given pattern. If no \fIpackage-name-pattern\fP
is given, list all packages in \fI/var/lib/dpkg/status\fP, excluding
the ones marked as not-installed (i.e. those which have been previously
readers, and is not easily machine-readable. See \fB\-W\fP (\fB\-\-show\fP)
and \fB\-\-showformat\fP for a way to configure the output format.
.TP
-.BR \-W ", " \-\-show " \fIpackage-name-pattern\fP..."
+.BR \-W ", " \-\-show " [\fIpackage-name-pattern\fP...]"
Just like the \fB\-\-list\fP option this will list all packages matching
the given pattern. However the output can be customized using the
\fB\-\-showformat\fP option.
diff --git a/src/querycmd.c b/src/querycmd.c
--- a/src/querycmd.c
+++ b/src/querycmd.c
" -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"
+" -W|--show [<pattern> ...] Show information on package(s).\n"
" -S|--search <pattern> ... Find package(s) owning file(s).\n"
" -c|--control-path <package> [<file>]\n"
" Print path for package control file.\n"
