X-Git-Url: http://dolda2000.com/gitweb/?p=doldaconnect.git;a=blobdiff_plain;f=clients%2Fgui-shell%2Flaunch.c;h=5cf716ab5e6f9898a03e22d48f5c35ba21be6dcb;hp=bef20ce7cc2e11f2b2d52d1e1df630fde53e5962;hb=8af979f318c0e3d1d00a35996f6b5fecb055ac33;hpb=a9477b339d8edadb9eb109718e3acffc178d65c6 diff --git a/clients/gui-shell/launch.c b/clients/gui-shell/launch.c index bef20ce..5cf716a 100644 --- a/clients/gui-shell/launch.c +++ b/clients/gui-shell/launch.c @@ -51,11 +51,12 @@ int main(int argc, char **argv) int c; char cf[1024], pf[1024]; - while((c = getopt(argc, argv, "h")) != -1) { + while((c = getopt(argc, argv, "hV")) != -1) { switch(c) { case 'h': - printf("usage: dolcon-launch [-h]\n"); + printf("usage: dolcon-launch [-hV]\n"); printf("\t-h\tDisplay this help message\n"); + printf("\t-V\tDisplay version info and exit\n"); printf("\n"); printf("\tIf $HOME/.doldacond.conf does not exist, dolcon-launch will run\n"); printf("\tdolconf. Otherwise, if $HOME/.doldacond.pid does not exist,\n"); @@ -63,7 +64,9 @@ int main(int argc, char **argv) printf("\tdoldacond-shell. Otherwise, dolcon-launch will run dolcon. All\n"); printf("\tthese programs must be somewhere in $PATH for dolcon-launch to work.\n"); exit(0); - break; + case 'V': + printf("%s", RELEASEINFO); + exit(0); default: fprintf(stderr, "usage: dolcon-launch [-h]\n"); exit(1);