Revision: 55585
http://sourceforge.net/p/brlcad/code/55585
Author: carlmoore
Date: 2013-05-29 18:04:26 +0000 (Wed, 29 May 2013)
Log Message:
-----------
go with bu_getopt error messages; high res changes from 'h' to '-s 1024';
implement h and ? for help
Modified Paths:
--------------
brlcad/trunk/src/util/bwshrink.c
Modified: brlcad/trunk/src/util/bwshrink.c
===================================================================
--- brlcad/trunk/src/util/bwshrink.c 2013-05-29 17:52:07 UTC (rev 55584)
+++ brlcad/trunk/src/util/bwshrink.c 2013-05-29 18:04:26 UTC (rev 55585)
@@ -36,7 +36,7 @@
/* declarations to support use of bu_getopt() system call */
-char *options = "uhs:w:n:f:";
+char *options = "us:w:n:f:h?";
char *progname = "(noname)";
char *filename = "(stdin)";
@@ -105,7 +105,7 @@
void usage(void)
{
(void) fprintf(stderr,
- "Usage: %s [-u] [-h] [-w width] [-n scanlines] [-s
squaresize]\n\
+ "Usage: %s [-u] [-w width] [-n scanlines] [-s squaresize]\n\
[-f shrink_factor] [bwfile] > bwfile\n", progname);
bu_exit (1, NULL);
}
@@ -121,9 +121,6 @@
if (!(progname = strrchr(*av, '/')))
progname = *av;
- /* Turn off bu_getopt's error messages */
- bu_opterr = 0;
-
/* get all the option flags from the command line */
while ((c=bu_getopt(ac, av, options)) != -1)
switch (c) {
@@ -131,9 +128,6 @@
if ((c = atoi(bu_optarg)) > 1)
factor = c;
break;
- case 'h':
- width = height = 1024;
- break;
case 'n':
if ((c=atoi(bu_optarg)) > 0)
height = c;
@@ -150,7 +144,6 @@
: method = METH_UNDERSAMPLE;
break;
- case '?':
default:
usage();
break;
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