Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] little talk about config_query_option

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Vladimír Marek <vlmarek AT volny.cz>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: [SM-Discuss] little talk about config_query_option
  • Date: Thu, 22 Jul 2004 23:00:27 +0200

Hello,

I would like to explain limits of config_query_option quicky, just to
make things clear.

config_query_option VARIABLE QUESTION DEFAUTL OPTION_YES OPTION_NO

It asks a QUESTION with given DEFAULT (empty default means user has to
respond, no default value specified, as usual). Then it _adds_ the
OPTION_YES or _NO to the VARIABLE according to the answer.

OPTION_YES and _NO can also be empty, but when the spell is cast for the
second time, I cannot decide if user selected the 'empty' option or none
yet last time. It has to ask again.

All OPTION_YES and _NO should be different for all config_query_option,
because in this case:

config_query_option VAR Qest1 y --enable "--don't do it"
config_query_option VAR Qest2 y "--do this" --enable

If user selects 'y' for first question, the second one will be
automatically answered 'n'.

Also since I don't write spells, if this behavior is not exactly what
you need, speak up and we'll what can be done.

I hope that you will use this function with joy now :)

--
Neuron

Attachment: pgpaXCL4fO8n3.pgp
Description: PGP signature



  • [SM-Discuss] little talk about config_query_option, Vladimír Marek, 07/22/2004

Archive powered by MHonArc 2.6.24.

Top of Page