summaryrefslogtreecommitdiff
path: root/dpkg-deb/main.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-06-20 19:11:20 +0200
committerGuillem Jover <guillem@debian.org>2011-08-02 06:14:19 +0200
commit8561eeb48292a0495d13335d7f088fe66e8ea167 (patch)
tree7099371726da4bffa0c19e8867d9795c0c75fa12 /dpkg-deb/main.c
parentcd3492245d81c9766c9ff09dc66f5822751cf71c (diff)
downloaddpkg-8561eeb48292a0495d13335d7f088fe66e8ea167.tar.gz
dpkg-deb: Add new -v, --verbose option
Change --extract to honour --verbose and behave as --vextract. Closes: #293280
Diffstat (limited to 'dpkg-deb/main.c')
-rw-r--r--dpkg-deb/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c
index 49cf5e50c..fb2fd06ff 100644
--- a/dpkg-deb/main.c
+++ b/dpkg-deb/main.c
@@ -96,6 +96,7 @@ usage(const struct cmdinfo *cip, const char *value)
printf(_(
"Options:\n"
" --showformat=<format> Use alternative format for --show.\n"
+" -v, --verbose Enable verbose output.\n"
" -D Enable debugging output.\n"
" --old, --new Select archive format.\n"
" --nocheck Suppress control file check (build bad\n"
@@ -130,6 +131,7 @@ static const char printforhelp[] =
"Type dpkg --help for help about installing and deinstalling packages.");
int debugflag=0, nocheckflag=0, oldformatflag=BUILDOLDPKGFORMAT;
+int opt_verbose = 0;
struct compressor *compressor = &compressor_gzip;
int compress_level = -1;
@@ -171,6 +173,7 @@ static const struct cmdinfo cmdinfos[]= {
{ "new", 0, 0, &oldformatflag, NULL, NULL, 0 },
{ "old", 0, 0, &oldformatflag, NULL, NULL, 1 },
{ "debug", 'D', 0, &debugflag, NULL, NULL, 1 },
+ { "verbose", 'v', 0, &opt_verbose, NULL, NULL, 1 },
{ "nocheck", 0, 0, &nocheckflag, NULL, NULL, 1 },
{ "compression", 'z', 1, NULL, NULL, set_compress_level },
{ "compress_type", 'Z', 1, NULL, NULL, setcompresstype },