mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +01:00
* gpgkeys_hkp.c (main), gpgkeys_ldap.c (main): Add -V flag to output
protocol and program version.
This commit is contained in:
parent
c42c5f9229
commit
be1d2a4038
@ -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-21 David Shaw <dshaw@jabberwocky.com>
|
2002-10-21 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* Makefile.am: Anything linking with libutil.a needs INTLLIBS as
|
* Makefile.am: Anything linking with libutil.a needs INTLLIBS as
|
||||||
|
@ -741,15 +741,20 @@ main(int argc,char *argv[])
|
|||||||
|
|
||||||
console=stderr;
|
console=stderr;
|
||||||
|
|
||||||
while((arg=getopt(argc,argv,"ho:"))!=-1)
|
while((arg=getopt(argc,argv,"hVo:"))!=-1)
|
||||||
switch(arg)
|
switch(arg)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
case 'h':
|
case 'h':
|
||||||
fprintf(console,"-h\thelp\n");
|
fprintf(console,"-h\thelp\n");
|
||||||
|
fprintf(console,"-V\tversion\n");
|
||||||
fprintf(console,"-o\toutput to this file\n");
|
fprintf(console,"-o\toutput to this file\n");
|
||||||
return KEYSERVER_OK;
|
return KEYSERVER_OK;
|
||||||
|
|
||||||
|
case 'V':
|
||||||
|
fprintf(stdout,"0\n%s\n",VERSION);
|
||||||
|
return KEYSERVER_OK;
|
||||||
|
|
||||||
case 'o':
|
case 'o':
|
||||||
output=fopen(optarg,"w");
|
output=fopen(optarg,"w");
|
||||||
if(output==NULL)
|
if(output==NULL)
|
||||||
|
@ -720,15 +720,20 @@ main(int argc,char *argv[])
|
|||||||
|
|
||||||
console=stderr;
|
console=stderr;
|
||||||
|
|
||||||
while((arg=getopt(argc,argv,"ho:"))!=-1)
|
while((arg=getopt(argc,argv,"hVo:"))!=-1)
|
||||||
switch(arg)
|
switch(arg)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
case 'h':
|
case 'h':
|
||||||
fprintf(console,"-h\thelp\n");
|
fprintf(console,"-h\thelp\n");
|
||||||
|
fprintf(console,"-V\tversion\n");
|
||||||
fprintf(console,"-o\toutput to this file\n");
|
fprintf(console,"-o\toutput to this file\n");
|
||||||
return KEYSERVER_OK;
|
return KEYSERVER_OK;
|
||||||
|
|
||||||
|
case 'V':
|
||||||
|
fprintf(stdout,"0\n%s\n",VERSION);
|
||||||
|
return KEYSERVER_OK;
|
||||||
|
|
||||||
case 'o':
|
case 'o':
|
||||||
output=fopen(optarg,"w");
|
output=fopen(optarg,"w");
|
||||||
if(output==NULL)
|
if(output==NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user