mirror of
https://github.com/omar-polo/gmid.git
synced 2024-09-27 21:11:51 +02:00
define GMID_STRING and reuse-it
GMID_VERSION follows the CGI/FastCGI style, i.e. project_name/version. Define GMID_STRING with a more "human" variant "project_name version", and reuse that in the --help and --version codepath.
This commit is contained in:
parent
0233b0f6b9
commit
fdb43a4c0e
4
gmid.c
4
gmid.c
@ -383,7 +383,7 @@ usage(void)
|
||||
fprintf(stderr,
|
||||
"usage: %s [-fn] [-c config] [-P pidfile] | [-6h] [-d certs-dir] [-H host]\n"
|
||||
" [-p port] [-x cgi] [dir]\n"
|
||||
"version: gmid 1.7\n",
|
||||
"version: " GMID_STRING "\n",
|
||||
getprogname());
|
||||
}
|
||||
|
||||
@ -579,7 +579,7 @@ main(int argc, char **argv)
|
||||
break;
|
||||
|
||||
case 'V':
|
||||
puts("Version: 1.7");
|
||||
puts("Version: " GMID_STRING);
|
||||
return 0;
|
||||
|
||||
case 'v':
|
||||
|
Loading…
Reference in New Issue
Block a user