[GRASS-dev] ps.map fprintf -> G_
Moritz Lennert
mlennert at club.worldonline.be
Thu Jan 11 05:47:39 EST 2007
On 08/01/07 15:50, Martin Landa wrote:
> Hi,
>
> 2007/1/8, Moritz Lennert <mlennert at club.worldonline.be>:
>
>> Hamish wrote:
>> > pps- ps.map verbose command IS used in the wild, so don't break
>> scripts by
>> > removing it altogether. Note it is multi-leveled, so it should keep
>> at least 3
>> > levels of verbosity triggered by --q,<>,--v, i.e. standard messages
>> should use
>> > G_message(), but very verbose messages should hide G_message() in
>> if(verbose >=
>> > G_max_verbose()) or whatever. I am in favour of separating mapping
>> commands
>> > from program control, and letting the parser deal with the latter.
>
> I am not sure if I understand well. It is true that verbose mapping
> instruction is multi-leveled (0|1|2). But in practice there was only
> one condition: if (verbose > 1) fprintf ();. It would be good to
> distinguish between standard and verbose messages as Hamish suggested.
> I am not sure what messages are "standard" and "very verbose".
>
> In the first patch verbose instruction overwrote the --v/q flags [1],
> now verbose instruction was removed and added a warning about that. So
> should I apply rather the first approach (including G_set_verbose) ?
I don't no about the different levels, but I think Hamish' main message
was that you should not break existing scripts by removing the verbose
command within ps.map.
Moritz
More information about the grass-dev
mailing list