1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-06 23:17:47 +02:00

* gpgkeys_hkp.c (main), gpgkeys_ldap.c (main): Add -V flag to output

protocol and program version.
This commit is contained in:
David Shaw 2002-10-24 18:29:11 +00:00
parent 26c1f2620b
commit 31f28dabba
3 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-10-24 David Shaw <dshaw@jabberwocky.com>
* gpgkeys_hkp.c (main), gpgkeys_ldap.c (main): Add -V flag to
output protocol and program version.
2002-10-08 David Shaw <dshaw@jabberwocky.com>
* gpgkeys_ldap.c (search_key, main): Make sure LDAP values are

View File

@ -654,15 +654,20 @@ int main(int argc,char *argv[])
fprintf(console,
"gpgkeys: WARNING: this is an *experimental* HKP interface!\n");
while((arg=getopt(argc,argv,"ho:"))!=-1)
while((arg=getopt(argc,argv,"hVo:"))!=-1)
switch(arg)
{
default:
case 'h':
fprintf(console,"-h\thelp\n");
fprintf(console,"-V\tversion\n");
fprintf(console,"-o\toutput to this file\n");
return KEYSERVER_OK;
case 'V':
fprintf(stdout,"0\n%s\n",VERSION);
return KEYSERVER_OK;
case 'o':
output=fopen(optarg,"w");
if(output==NULL)

View File

@ -622,15 +622,20 @@ int main(int argc,char *argv[])
console=stderr;
while((arg=getopt(argc,argv,"ho:"))!=-1)
while((arg=getopt(argc,argv,"hVo:"))!=-1)
switch(arg)
{
default:
case 'h':
fprintf(console,"-h\thelp\n");
fprintf(console,"-V\tversion\n");
fprintf(console,"-o\toutput to this file\n");
return KEYSERVER_OK;
case 'V':
fprintf(stdout,"0\n%s\n",VERSION);
return KEYSERVER_OK;
case 'o':
output=fopen(optarg,"w");
if(output==NULL)