]> git.mxchange.org Git - flightgear.git/commit
allow to specify a node type: --prop:[type:]name=value
authormfranz <mfranz>
Thu, 28 Jun 2007 11:26:40 +0000 (11:26 +0000)
committermfranz <mfranz>
Thu, 28 Jun 2007 11:26:40 +0000 (11:26 +0000)
commitcb15006f5375054829e6d2c8f8d001bf4b425cd8
treec913fdbf40b67bca2fcc35ee88eebd7b18a33110
parent54ef3b77d5edf4316c0d9f56f795d0fe1e9c2a59
allow to specify a node type:   --prop:[type:]name=value
where type is one of string (default), double, float, long, int, bool
Using only the first letter works, too.

  --prop:foo=123         ... sets property foo to string 123 (old behavior)
  --prop:string:foo=123  ... verbose version of above
  --prop:s:foo=123       ... slightly less verbose version of above
  --prop:bool:foo=1      ... makes property a bool of value 'true'

I hope this isn't considered a silly gimmick. I need this often and maybe
other developers do, too. It's useful in cases where the difference really
matters. if (getprop("/foo")), for instance, is TRUE even when the property
contains string "false", as all strings are TRUE.
src/Main/options.cxx