Revision: 56391
http://sourceforge.net/p/brlcad/code/56391
Author: carlmoore
Date: 2013-07-31 20:01:40 +0000 (Wed, 31 Jul 2013)
Log Message:
-----------
add 'OR' line to usage, remove H and add ? (for help)
Modified Paths:
--------------
brlcad/trunk/src/gtools/g_transfer.c
Modified: brlcad/trunk/src/gtools/g_transfer.c
===================================================================
--- brlcad/trunk/src/gtools/g_transfer.c 2013-07-31 18:47:39 UTC (rev
56390)
+++ brlcad/trunk/src/gtools/g_transfer.c 2013-07-31 20:01:40 UTC (rev
56391)
@@ -100,6 +100,7 @@
bu_log("%s\n", msg);
}
bu_log("Usage: %s [-t] [-p#] host gfile [geometry ...]\n\t-p#\tport number
to send to (default 2000)\n\thost\thostname or IP address of receiving
server\n\tgfile\tBRL-CAD .g database file\n\tgeometry\tname(s) of geometry to
send (OPTIONAL)\n", argv0 ? argv0 : "g_transfer");
+ bu_log("\nOR\n");
bu_exit(1, "Usage: %s -r [-p#]\n\t-p#\tport number to listen on (default
2000)\n", argv0 ? argv0 : "g_transfer");
}
@@ -494,11 +495,11 @@
struct db_i *dbip = NULL;
if (argc < 2) {
- usage("ERROR: Missing arguments", argv[0]);
+ usage(NULL, argv[0]);
}
/* process the command-line arguments after the application name */
- while ((c = bu_getopt(argc, argv, "tTrRp:P:hH")) != -1) {
+ while ((c = bu_getopt(argc, argv, "tTrRp:P:h?")) != -1) {
switch (c) {
case 't':
case 'T':
@@ -514,13 +515,9 @@
case 'P':
port = atoi(bu_optarg);
break;
- case 'h':
- case 'H':
+ default:
/* help */
usage(NULL, argv0);
- break;
- default:
- usage("ERROR: Unknown argument", argv0);
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits