Revision: 33189 http://brlcad.svn.sourceforge.net/brlcad/?rev=33189&view=rev Author: bob1961 Date: 2008-11-14 14:12:32 +0000 (Fri, 14 Nov 2008)
Log Message: ----------- Added code to return help string if no args were specified. Modified Paths: -------------- brlcad/trunk/src/libged/grid.c Modified: brlcad/trunk/src/libged/grid.c =================================================================== --- brlcad/trunk/src/libged/grid.c 2008-11-14 14:03:29 UTC (rev 33188) +++ brlcad/trunk/src/libged/grid.c 2008-11-14 14:12:32 UTC (rev 33189) @@ -74,6 +74,11 @@ /* initialize result */ bu_vls_trunc(&gedp->ged_result_str, 0); + if (argc == 1) { + bu_vls_printf(&gedp->ged_result_str, "Usage: %s %s", argv[0], usage); + return BRLCAD_OK; + } + if (argc < 2 || 5 < argc) { bu_vls_printf(&gedp->ged_result_str, "Usage: %s %s", argv[0], usage); return BRLCAD_ERROR; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits