Revision: 54112
http://brlcad.svn.sourceforge.net/brlcad/?rev=54112&view=rev
Author: carlmoore
Date: 2012-12-21 22:06:01 +0000 (Fri, 21 Dec 2012)
Log Message:
-----------
remove h option, and combine Usage statements
Modified Paths:
--------------
brlcad/trunk/src/conv/dxf/bot-bldxf.c
Modified: brlcad/trunk/src/conv/dxf/bot-bldxf.c
===================================================================
--- brlcad/trunk/src/conv/dxf/bot-bldxf.c 2012-12-21 21:24:45 UTC (rev
54111)
+++ brlcad/trunk/src/conv/dxf/bot-bldxf.c 2012-12-21 22:06:01 UTC (rev
54112)
@@ -38,7 +38,7 @@
/* declarations to support use of bu_getopt() */
-char *options = "hd:";
+char *options = "d";
char *progname = "(noname)";
#define DEBUG_NAMES 1
@@ -56,7 +56,7 @@
{
if (s) (void)fputs(s, stderr);
- (void) fprintf(stderr, "Usage: %s [ -%s ] [<] infile [> outfile]\n",
+ (void) fprintf(stderr, "Usage: %s [-%s] [<] geom.g [> file.dxf] [bot1 bot2
bot3...]\n",
progname, options);
bu_exit(1, NULL);
}
@@ -81,9 +81,7 @@
while ((c=bu_getopt(ac, av, options)) != -1)
switch (c) {
case 'd' : debug = strtol(bu_optarg, NULL, 16); break;
- case '?' :
- case 'h' :
- default : usage("Bad or help flag specified\n"); break;
+ default : usage("Bad flag specified\n"); break;
}
return bu_optind;
@@ -522,7 +520,7 @@
arg_count = parse_args(ac, av);
if ((ac - arg_count) < 1) {
- fprintf(stderr, "Usage: %s geom.g [file.dxf] [bot1 bot2 bot3...]\n",
progname);
+ usage("");
return 1;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits