[brlcad-commits] SF.net SVN: brlcad:[63324] brlcad/trunk/src/conv/g-vrml.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <n_...@us...> - 2014-11-05 19:55:10
|
Revision: 63324 http://sourceforge.net/p/brlcad/code/63324 Author: n_reed Date: 2014-11-05 19:54:58 +0000 (Wed, 05 Nov 2014) Log Message: ----------- keep usage format and content separate Modified Paths: -------------- brlcad/trunk/src/conv/g-vrml.c Modified: brlcad/trunk/src/conv/g-vrml.c =================================================================== --- brlcad/trunk/src/conv/g-vrml.c 2014-11-05 19:53:21 UTC (rev 63323) +++ brlcad/trunk/src/conv/g-vrml.c 2014-11-05 19:54:58 UTC (rev 63324) @@ -93,8 +93,9 @@ extern union tree *do_region_end2(struct db_tree_state *tsp, const struct db_full_path *pathp, union tree *curtree, void *client_data); extern union tree *nmg_region_end(struct db_tree_state *tsp, const struct db_full_path *pathp, union tree *curtree, void *client_data); -static const char usage[] = "Usage: %s [-b] [-e] [-v] [-xX lvl] [-d tolerance_distance] [-a abs_tol] [-r rel_tol] [-n norm_tol] [-o out_file] [-u units] brlcad_db.g object(s)\n\ -(units default to mm)\n"; +static const char *usage = +"[-b] [-e] [-v] [-xX lvl] [-d tolerance_distance] [-a abs_tol] [-r rel_tol] [-n norm_tol] [-o out_file] [-u units] brlcad_db.g object(s)\n" +"(units default to mm)\n"; static char *tok_sep = " \t"; static int NMG_debug; /* saved arg of -X, for longjmp handling */ @@ -119,6 +120,12 @@ static int eval_all = 0; static void +print_usage(const char *progname) +{ + bu_exit(1, "Usage: %s %s", progname, usage); +} + +static void clean_pmp(struct plate_mode *pmp) { int i; @@ -657,12 +664,12 @@ scale_factor = 1.0 / scale_factor; break; default: - bu_exit(1, usage, argv[0]); + print_usage(argv[0]); } } if (bu_optind + 1 >= argc) - bu_exit(1, usage, argv[0]); + print_usage(argv[0]); if ((bot_dump == 1) && (eval_all == 1)) { bu_exit(1, "BOT Dump and Evaluate All are mutually exclusive\n"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |