Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added autopackage/build for current set of working packages.
[doldaconnect.git]
/
clients
/
gtk2
/
dolcon.c
diff --git
a/clients/gtk2/dolcon.c
b/clients/gtk2/dolcon.c
index
9da836b
..
c71b9a1
100644
(file)
--- a/
clients/gtk2/dolcon.c
+++ b/
clients/gtk2/dolcon.c
@@
-2208,18
+2208,22
@@
int main(int argc, char **argv)
textdomain(PACKAGE);
gtk_init(&argc, &argv);
connlocal = 0;
textdomain(PACKAGE);
gtk_init(&argc, &argv);
connlocal = 0;
- while((c = getopt(argc, argv, "lh")) != -1) {
+ while((c = getopt(argc, argv, "lh
V
")) != -1) {
switch(c) {
case 'l':
connlocal = 1;
break;
case 'h':
switch(c) {
case 'l':
connlocal = 1;
break;
case 'h':
- printf("usage: dolcon [-hl]\n");
+ printf("usage: dolcon [-hl
V
]\n");
printf("\t-h\tDisplay this help message\n");
printf("\t-l\tConnect to the locally running daemon\n");
printf("\t-h\tDisplay this help message\n");
printf("\t-l\tConnect to the locally running daemon\n");
+ printf("\t-V\tDisplay version info and exit\n");
+ exit(0);
+ case 'V':
+ printf("%s", RELEASEINFO);
exit(0);
default:
exit(0);
default:
- fprintf(stderr, "usage: dolcon [-hl]\n");
+ fprintf(stderr, "usage: dolcon [-hl
V
]\n");
exit(1);
}
}
exit(1);
}
}