From: Neil H. <nh...@us...> - 2009-12-21 12:52:53
|
Update of /cvsroot/cscope/cscope/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv12550/src Modified Files: main.c Log Message: Adding help/version options to parse_options Index: main.c =================================================================== RCS file: /cvsroot/cscope/cscope/src/main.c,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -r1.50 -r1.51 *** main.c 14 Dec 2009 17:54:22 -0000 1.50 --- main.c 21 Dec 2009 12:17:47 -0000 1.51 *************** *** 198,201 **** --- 198,205 ---- editallprompt = NO; break; + case 'h': + longusage(); + myexit(1); + break; case 'k': /* ignore DFLT_INCDIR */ kernelmode = YES; *************** *** 210,213 **** --- 214,222 ---- verbosemode = YES; break; + case 'V': + fprintf(stderr, "%s: version %d%s\n", argv0, + FILEVERSION, FIXVERSION); + myexit(0); + break; case 'q': /* quick search */ invertedindex = YES; |