[GRASS-dev] r.flow and reference information

Glynn Clements glynn at gclements.plus.com
Thu Oct 19 19:20:22 EDT 2006

Jachym Cepicky wrote:

> while rewriting some modules, so that they use G_message and G_warning
>     instead of fprinf, i found, that r.flow prints reference information
>     to standard error.
> i think, this option (-h) should be removed, because of this information
> can be found in the manual page (or should be).
> so i suggets
> +      G_warning(_("For reference information see manual page. This option will be removed"));

> what do you think?

Seems reasonable enough.

FWIW, if the information was to be retained, fprintf() (or fputs())
would be the correct approach, although it should be a single call
rather than one per line.

Note that the C preprocessor concatenates adjacent string literals, so
large chunks of text can be split into lines like so:

		"Version: GRASS5.0, update: October 1999\n"
		"Please cite these references in publications where the results of this\n"
		"program are used.\n"

without having to use a separate function call for each line.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list