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