diff options
Diffstat (limited to 'keyserver/gpgkeys_ldap.c')
-rw-r--r-- | keyserver/gpgkeys_ldap.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/keyserver/gpgkeys_ldap.c b/keyserver/gpgkeys_ldap.c index 654c7a2c3..1920da7b5 100644 --- a/keyserver/gpgkeys_ldap.c +++ b/keyserver/gpgkeys_ldap.c @@ -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) |