[GRASS5] display multiple answers' default

GRASS grass at geni.knu.ac.kr
Fri Oct 27 10:16:05 EDT 2000


Hi developers,

G_parser() displayed usage of opt->answer only before.
As i was adding new features to d.pan, i did see opt->answers usage didn't
work at all.

Now you can display multiple answers default values.

	char *def[] = {"One", "Two", "Last", NULL};

	opt->multiple = YES;
	opt->answers  = def;

	G_parser();

It's simple. Don't forget last NULL value.

See d.pan/main.c source for reallife example.


Best Regards,
Huidae Cho

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list