Revision: 55612
http://sourceforge.net/p/brlcad/code/55612
Author: carlmoore
Date: 2013-05-30 21:37:36 +0000 (Thu, 30 May 2013)
Log Message:
-----------
implement h,?, and Illegal option; old h became H
Modified Paths:
--------------
brlcad/trunk/src/sig/ddisp.c
Modified: brlcad/trunk/src/sig/ddisp.c
===================================================================
--- brlcad/trunk/src/sig/ddisp.c 2013-05-30 21:13:37 UTC (rev 55611)
+++ brlcad/trunk/src/sig/ddisp.c 2013-05-30 21:37:36 UTC (rev 55612)
@@ -47,7 +47,7 @@
void disp_bars(double *buf, int size);
static const char usage[] = "\
-Usage: ddisp [-v -b -p -c -h] [width (512)] < inputfile\n";
+Usage: ddisp [-v -b -p -c -H] [width (512)] < inputfile\n";
int
main(int argc, char **argv)
@@ -71,10 +71,14 @@
pause_time = 3;
} else if ( BU_STR_EQUAL(argv[1], "-c") ) {
Clear++;
- } else if ( BU_STR_EQUAL(argv[1], "-h") ) {
+ } else if ( BU_STR_EQUAL(argv[1], "-H") ) {
fbsize = 1024;
- } else
- break;
+ bu_exit(1, "%s", usage );
+ } else {
+ if (! BU_STR_EQUAL(argv[1], "-h") && ! BU_STR_EQUAL(argv[1], "-?") )
+ fprintf(stderr,"Illegal option -- %s\n",argv[1]);
+ bu_exit(1, "%s", usage );
+ }
argc--;
argv++;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits