1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* g10.c, options.h: New option --enable-progress-filter.

* progress.c (handle_progress): Make use of it.
This commit is contained in:
Werner Koch 2003-04-15 15:49:41 +00:00
parent 56f87ae51d
commit d739d1c9b1
13 changed files with 108 additions and 14 deletions

View file

@ -1,5 +1,5 @@
/* g10.c - The GnuPG utility (main for gpg)
* Copyright (C) 1998,1999,2000,2001,2002 Free Software Foundation, Inc.
* Copyright (C) 1998,1999,2000,2001,2002,2003 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@ -297,6 +297,7 @@ enum cmd_and_opt_values { aNull = 0,
oNoStrict,
oMangleDosFilenames,
oNoMangleDosFilenames,
oEnableProgressFilter,
aTest };
@ -595,6 +596,7 @@ static ARGPARSE_OPTS opts[] = {
{ oNoStrict, "no-strict", 0, "@" },
{ oMangleDosFilenames, "mangle-dos-filenames", 0, "@" },
{ oNoMangleDosFilenames, "no-mangle-dos-filenames", 0, "@" },
{ oEnableProgressFilter, "enable-progress-filter", 0, "@" },
{0} };
@ -1699,6 +1701,8 @@ main( int argc, char **argv )
case oMangleDosFilenames: opt.mangle_dos_filenames = 1; break;
case oNoMangleDosFilenames: opt.mangle_dos_filenames = 0; break;
case oEnableProgressFilter: opt.enable_progress_filter = 1; break;
default : pargs.err = configfp? 1:2; break;
}
}