mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
From 1.4:
* curl-shim.h (curl_version): No need to provide a version for curl-shim as it always matches the GnuPG version. * gpgkeys_curl.c, gpgkeys_hkp.c (main): Show which version of curl we're using as part of --version. * gpgkeys_curl.c, gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_ldap.c (show_help): Document --version.
This commit is contained in:
parent
8e7e6f124b
commit
07390d3f80
6 changed files with 35 additions and 16 deletions
|
@ -102,9 +102,10 @@ get_key(char *getkey)
|
|||
static void
|
||||
show_help (FILE *fp)
|
||||
{
|
||||
fprintf (fp,"-h\thelp\n");
|
||||
fprintf (fp,"-V\tversion\n");
|
||||
fprintf (fp,"-o\toutput to this file\n");
|
||||
fprintf (fp,"-h, --help\thelp\n");
|
||||
fprintf (fp,"-V\t\tmachine readable version\n");
|
||||
fprintf (fp,"--version\thuman readable version\n");
|
||||
fprintf (fp,"-o\t\toutput to this file\n");
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -122,7 +123,8 @@ main(int argc,char *argv[])
|
|||
/* Kludge to implement standard GNU options. */
|
||||
if (argc > 1 && !strcmp (argv[1], "--version"))
|
||||
{
|
||||
fputs ("gpgkeys_curl (GnuPG) " VERSION"\n", stdout);
|
||||
printf ("gpgkeys_curl (GnuPG) %s\n", VERSION);
|
||||
printf ("Uses: %s\n", curl_version());
|
||||
return 0;
|
||||
}
|
||||
else if (argc > 1 && !strcmp (argv[1], "--help"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue