RE: [Soaplab-users] Boolean qualifiers turned on by default
Brought to you by:
marsenger
|
From: Marc L. <Mar...@DE...> - 2006-03-03 08:00:27
|
Oh wait. What are you actually trying to achieve ?
The configuration like this=20
boolean: flag [
additional: "Y"
default: "true"
comment: "defaults"
]
means the following:
1) the flag option is optional
2) when the flag is set to 'true' by the user it is not passed to the
command line (the 'comment: defaults' part)
However, this comes from the docs:
" comment: defaults
A boolean option. If defined it says "put on the command line the
value of this parameter even if the value is a default one". By default,
the default values are not put on the command-line."
But actually this behaviour I do not observe at all, in contrary. It is
not put on the command line if the passed value is equal to the
configured default value (this comes in handy sometimes, see one of my
previous posts
http://sourceforge.net/mailarchive/forum.php?thread_id=3D9796424&forum_id=
=3D
45617).
I believe you want to run the command always like 'command -flag', right
? I mean without the value 'true' coming after and the user should not
pass anything. The user should not even be aware of the option ?
If that is the case, you should try something like:
boolean: flag [
comment: "display no"
default: "true"
comment: defaults
comment: "method -flag"
]
HTH,
Marc
> -----Original Message-----
> From: soa...@li...=20
> [mailto:soa...@li...] On Behalf=20
> Of Marc Logghe
> Sent: Friday, March 03, 2006 8:37 AM
> To: Lia...@cs...; soa...@li...
> Subject: RE: [Soaplab-users] Boolean qualifiers turned on by default
>=20
> > Is there a way to force soaplab to always start a program with a=20
> > boolean flag.
> > eg. Say we have a program with the following command syntax:
> >=20
> > command [-flag]
> >=20
> > Is there a way to make soaplab call this command with the -flag=20
> > qualifier by default. A solution in xml would be preferable=20
> although=20
> > an acd solution would be great.
> >=20
> > I have already tried:
> >=20
> > boolean: flag [
> > comment: "defaults"
> > ]
> >=20
> > boolean: flag [
> > default: "true"
> > comment: "defaults"
> > ]
> >=20
> > boolean: flag [
> > standard: "true"
> > default: "true"
> > comment: "defaults"
> > ]
> Hi Liam,
>=20
> What happens if you use 'additional' instead of 'standard' ?
> boolean: flag [
> additional: "Y"
> default: "true"
> comment: "defaults"
> ]
>=20
> Cheers,
> Marc
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking=20
> scripting language that extends applications into web and=20
> mobile media. Attend the live webcast and join the prime=20
> developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=110944&bid$1720&dat=121642
> _______________________________________________
> Soaplab-users mailing list
> Soa...@li...
> https://lists.sourceforge.net/lists/listinfo/soaplab-users
>=20
|