From be38a51750705bba67daa430955d2332870c38a1 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Sat, 28 Jan 2006 05:07:50 +0000 Subject: added a --noprogressbar switch for scripts to use --- src/pacman/pacman.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pacman/pacman.c') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index ea3babe3..715b3244 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -300,6 +300,7 @@ int parseargs(int argc, char *argv[]) {"config", required_argument, 0, 1001}, {"ignore", required_argument, 0, 1002}, {"debug", required_argument, 0, 1003}, + {"noprogressbar", no_argument, 0, 1004}, {0, 0, 0, 0} }; char root[PATH_MAX]; @@ -319,6 +320,7 @@ int parseargs(int argc, char *argv[]) break; case 1002: config->op_s_ignore = list_add(config->op_s_ignore, strdup(optarg)); break; case 1003: config->debug = atoi(optarg); break; + case 1004: config->noprogressbar = 1; break; case 'A': config->op = (config->op != PM_OP_MAIN ? 0 : PM_OP_ADD); break; case 'D': config->op = (config->op != PM_OP_MAIN ? 0 : PM_OP_DEPTEST); @@ -482,6 +484,7 @@ void usage(int op, char *myname) } printf(" --config set an alternate configuration file\n"); printf(" --noconfirm do not ask for anything confirmation\n"); + printf(" --noprogressbar do not show a progress bar when downloading files\n"); printf(" -v, --verbose be verbose\n"); printf(" -r, --root set an alternate installation root\n"); printf(" -b, --dbpath set an alternate database location\n"); -- cgit v1.2.3