[svn] GnuPG - r3869 - trunk/g10

svn author dshaw cvs at cvs.gnupg.org
Sat Aug 20 21:38:46 CEST 2005


Author: dshaw
Date: 2005-08-20 21:38:45 +0200 (Sat, 20 Aug 2005)
New Revision: 3869

Modified:
   trunk/g10/ChangeLog
   trunk/g10/g10.c
Log:
* g10.c (main): Add aliases sign-with->local-user and user->recipient
to make switching from PGP command line to GPG easier.


Modified: trunk/g10/ChangeLog
===================================================================
--- trunk/g10/ChangeLog	2005-08-19 13:37:47 UTC (rev 3868)
+++ trunk/g10/ChangeLog	2005-08-20 19:38:45 UTC (rev 3869)
@@ -1,3 +1,9 @@
+2005-08-20  David Shaw  <dshaw at 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 at jabberwocky.com>
 
 	* options.skel: Remove the surfnet LDAP keyserver from the list of

Modified: trunk/g10/g10.c
===================================================================
--- trunk/g10/g10.c	2005-08-19 13:37:47 UTC (rev 3868)
+++ trunk/g10/g10.c	2005-08-20 19:38:45 UTC (rev 3869)
@@ -87,7 +87,7 @@
     oHiddenRecipient = 'R',
     aSign	  = 's',
     oTextmodeShort= 't',
-    oUser	  = 'u',
+    oLocalUser	  = 'u',
     oVerbose	  = 'v',
     oCompress	  = 'z',
     oSetNotation  = 'N',
@@ -437,7 +437,7 @@
     { oEncryptTo, "encrypt-to", 2, "@" },
     { oHiddenEncryptTo, "hidden-encrypt-to", 2, "@" },
     { 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)") },
     { oCompressLevel, "compress-level", 1, "@" },
     { oBZ2CompressLevel, "bzip2-compress-level", 1, "@" },
@@ -689,7 +689,12 @@
 #if defined(ENABLE_CARD_SUPPORT) && defined(HAVE_LIBUSB)
     { oDebugCCIDDriver, "debug-ccid-driver", 0, "@"},
 #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}
 };
 
@@ -2262,7 +2267,7 @@
           case oMinCertLevel: opt.min_cert_level=pargs.r.ret_int; break;
 	  case oAskCertLevel: opt.ask_cert_level = 1; 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 );
 	    break;
 	  case oCompress:




More information about the Gnupg-commits mailing list