[GRASS-dev] g.parser use G_parser()?

Hamish hamish_nospam at yahoo.com
Wed Nov 8 02:48:36 EST 2006


Is there a reason that the g.parser module doesn't use G_parser() for itself?

general/g.parser/main.c:

    /* Detect request to get strings to translate from a file */
    /* It comes BEFORE the filename to completely avoid confusion with parser.c behaviours */
    if (argc >= 2 && (strcmp (argv[1], "-t") == 0)) {
	/* Turn on translation output */
	translate_output = 1;
    }

    if (argc < 2 + translate_output)
    {
	fprintf(stderr, "Usage: %s [-t] <filename> [<argument> ...]\n", argv[0]);
	return 1;
    }


Hamish




More information about the grass-dev mailing list