[GRASS-user] g.message syntax question

   This command,
g.message -p mes='Setting region to county boundary'
produces an error: Option message does not accept multiple answers.

   Using double quotation marks rather than single ones makes no difference.
What is the correct command syntax to print this message to the screen when
the command is in a script?

Rich

Just the message, without the ‘-p’ flag will work. That flag is for a progress indicator, and I’m not sure how it works :frowning:

···

On 10/08/2018 05:43 PM, Rich Shepard wrote:

This command,
g.message -p mes=‘Setting region to county boundary’
produces an error: Option message does not accept multiple answers.

Using double quotation marks rather than single ones makes no difference.
What is the correct command syntax to print this message to the screen when
the command is in a script?

Rich


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918

On Mon, 8 Oct 2018, Micha Silver wrote:

Just the message, without the '-p' flag will work. That flag is for a
progress indicator, and I'm not sure how it works :frowning:

Micha,

   Interesting. This morning I tried it without any flags and got the same
error message so I chose the '-p' flag as the most likely solution.

   Just now, both
   g.message 'this is a message'
and
   g.message msg='this is a message'
worked.

   I must have had an unnoticed typo when I tried it a couple of times this
morning.

Thanks,

Rich