Skip to content

Commit

Permalink
Undo 'y' argv filter from 4b6850a
Browse files Browse the repository at this point in the history
Unfortunately, this filter breaks MGED command line processing.  The
following command illustrates the problem:

./bin/mged share/db/axis.g l y

It should print out the info for the 'y' TGC, but the filter strips out
the 'y' primitive name and it never reaches the 'l' routine.

We'll need to find another way to handle the "unrecognized command"
errors.
  • Loading branch information
starseeker committed Jan 16, 2024
1 parent a95b9e7 commit acb6fa2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/mged/mged.c
Original file line number Diff line number Diff line change
Expand Up @@ -1538,14 +1538,7 @@ main(int argc, char *argv[])
* access to Tcl/Tk is possible.
*/
for (argc -= 1, argv += 1; argc; --argc, ++argv) {
/* in order to process interactively, an old optional y/n argument
* intended for f_opendb must be filtered out here to remove
* garbage "unrecognized command" line prints
*/
if (!BU_STR_EQUAL("y", argv[0]) && !BU_STR_EQUAL("Y", argv[0])
&& !BU_STR_EQUAL("n", argv[0]) && !BU_STR_EQUAL("N", argv[0])) {
bu_vls_printf(&input_str, "%s ", *argv);
}
}

cmdline(&input_str, TRUE);
Expand Down

0 comments on commit acb6fa2

Please sign in to comment.