mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-10 21:38:50 +01:00
* g10.c (main): Add aliases sign-with->local-user and user->recipient
to make switching from PGP command line to GPG easier.
This commit is contained in:
parent
bd146d5fcc
commit
5cb51422f9
@ -1,3 +1,9 @@
|
|||||||
|
2005-08-20 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* g10.c (main): Add aliases sign-with->local-user and
|
||||||
|
user->recipient to make switching from PGP command line to GPG
|
||||||
|
easier.
|
||||||
|
|
||||||
2005-08-19 David Shaw <dshaw@jabberwocky.com>
|
2005-08-19 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* options.skel: Remove the surfnet LDAP keyserver from the list of
|
* options.skel: Remove the surfnet LDAP keyserver from the list of
|
||||||
|
13
g10/g10.c
13
g10/g10.c
@ -87,7 +87,7 @@ enum cmd_and_opt_values
|
|||||||
oHiddenRecipient = 'R',
|
oHiddenRecipient = 'R',
|
||||||
aSign = 's',
|
aSign = 's',
|
||||||
oTextmodeShort= 't',
|
oTextmodeShort= 't',
|
||||||
oUser = 'u',
|
oLocalUser = 'u',
|
||||||
oVerbose = 'v',
|
oVerbose = 'v',
|
||||||
oCompress = 'z',
|
oCompress = 'z',
|
||||||
oSetNotation = 'N',
|
oSetNotation = 'N',
|
||||||
@ -437,7 +437,7 @@ static ARGPARSE_OPTS opts[] = {
|
|||||||
{ oEncryptTo, "encrypt-to", 2, "@" },
|
{ oEncryptTo, "encrypt-to", 2, "@" },
|
||||||
{ oHiddenEncryptTo, "hidden-encrypt-to", 2, "@" },
|
{ oHiddenEncryptTo, "hidden-encrypt-to", 2, "@" },
|
||||||
{ oNoEncryptTo, "no-encrypt-to", 0, "@" },
|
{ oNoEncryptTo, "no-encrypt-to", 0, "@" },
|
||||||
{ oUser, "local-user",2, N_("use this user-id to sign or decrypt")},
|
{ oLocalUser, "local-user",2, N_("use this user-id to sign or decrypt")},
|
||||||
{ oCompress, NULL, 1, N_("|N|set compress level N (0 disables)") },
|
{ oCompress, NULL, 1, N_("|N|set compress level N (0 disables)") },
|
||||||
{ oCompressLevel, "compress-level", 1, "@" },
|
{ oCompressLevel, "compress-level", 1, "@" },
|
||||||
{ oBZ2CompressLevel, "bzip2-compress-level", 1, "@" },
|
{ oBZ2CompressLevel, "bzip2-compress-level", 1, "@" },
|
||||||
@ -689,7 +689,12 @@ static ARGPARSE_OPTS opts[] = {
|
|||||||
#if defined(ENABLE_CARD_SUPPORT) && defined(HAVE_LIBUSB)
|
#if defined(ENABLE_CARD_SUPPORT) && defined(HAVE_LIBUSB)
|
||||||
{ oDebugCCIDDriver, "debug-ccid-driver", 0, "@"},
|
{ oDebugCCIDDriver, "debug-ccid-driver", 0, "@"},
|
||||||
#endif
|
#endif
|
||||||
|
/* These are aliases to help users of the PGP command line product
|
||||||
|
use gpg with minimal pain. Many commands are common already as
|
||||||
|
they seem to have borrowed commands from us. Now I'm returning
|
||||||
|
the favor. */
|
||||||
|
{ oLocalUser, "sign-with", 2, "@" },
|
||||||
|
{ oRecipient, "user", 2, "@" },
|
||||||
{0,NULL,0,NULL}
|
{0,NULL,0,NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2262,7 +2267,7 @@ main (int argc, char **argv )
|
|||||||
case oMinCertLevel: opt.min_cert_level=pargs.r.ret_int; break;
|
case oMinCertLevel: opt.min_cert_level=pargs.r.ret_int; break;
|
||||||
case oAskCertLevel: opt.ask_cert_level = 1; break;
|
case oAskCertLevel: opt.ask_cert_level = 1; break;
|
||||||
case oNoAskCertLevel: opt.ask_cert_level = 0; break;
|
case oNoAskCertLevel: opt.ask_cert_level = 0; break;
|
||||||
case oUser: /* store the local users */
|
case oLocalUser: /* store the local users */
|
||||||
add_to_strlist2( &locusr, pargs.r.ret_str, utf8_strings );
|
add_to_strlist2( &locusr, pargs.r.ret_str, utf8_strings );
|
||||||
break;
|
break;
|
||||||
case oCompress:
|
case oCompress:
|
||||||
|
Loading…
Reference in New Issue
Block a user