X-Git-Url: http://dolda2000.com/gitweb/?p=doldaconnect.git;a=blobdiff_plain;f=config%2Futil%2Fdolconf.c;h=75d89c7f25542826785316e07bd1dfd1dae8b1e3;hp=07c6077999c242962c511bb98db7298d122f324b;hb=8af979f318c0e3d1d00a35996f6b5fecb055ac33;hpb=a9477b339d8edadb9eb109718e3acffc178d65c6 diff --git a/config/util/dolconf.c b/config/util/dolconf.c index 07c6077..75d89c7 100644 --- a/config/util/dolconf.c +++ b/config/util/dolconf.c @@ -763,7 +763,7 @@ int main(int argc, char **argv) gtk_init(&argc, &argv); state = -1; - while((c = getopt(argc, argv, "haw")) != -1) { + while((c = getopt(argc, argv, "hawV")) != -1) { switch(c) { case 'a': state = 1; @@ -776,9 +776,13 @@ int main(int argc, char **argv) printf("\t-h\tDisplay this help message\n"); printf("\t-a\tGo directly to the assistant\n"); printf("\t-w\tGo directly to the standard window\n"); + printf("\t-V\tDisplay version info and exit\n"); + exit(0); + case 'V': + printf("%s", RELEASEINFO); exit(0); default: - fprintf(stderr, "usage: dolconf [-haw]\n"); + fprintf(stderr, "usage: dolconf [-hawV]\n"); exit(1); } }