URL:
  <http://gna.org/bugs/?15030>

                 Summary: 'show' command hates server options with
underscores
                 Project: Freeciv
            Submitted by: kernigh
            Submitted on: Friday 01/01/2010 at 20:03
                Category: None
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.2.0-beta1
         Discussion Lock: Any
        Operating System: *BSD
         Planned Release: 

    _______________________________________________________

Details:

In 2.2.0-beta1, the 'show' command never hates all server options with
underscores (ec_turns, ec_max_size, ec_chat, ec_info, mgr_turninterval,
mgr_foodneeded, mgr_distance, mgr_nationchance, mgr_worldchance). This
resembles closed bug #13652, but for 'show' instead of 'explain'.

I can show the options with 'show situational' or 'show rare', but not by
prefix or by name. The 'show' command seems to ignore everything not before
the first underscore, so 'show ec_turns' acts like 'show ec'. Then 'show ec'
shows a list of zero options because they are not vital options.

Also, ec_max_size defaults to only 10, even though 'help ec_max_size' thinks
that the default is 256. Thus, 'show changed' includes ec_max_size, though I
never changed it.


$ ./ser
This is the server for Freeciv version 2.2.0-beta1 (beta version)
You can learn a lot about Freeciv at http://www.freeciv.org/

THIS IS A BETA VERSION
Freeciv 2.2.0 will be released in March, at http://www.freeciv.org/

2: Loading rulesets
2: AI*1 has been added as Easy level AI-controlled player.
2: AI*2 has been added as Easy level AI-controlled player.
2: AI*3 has been added as Easy level AI-controlled player.
2: AI*4 has been added as Easy level AI-controlled player.
2: AI*5 has been added as Easy level AI-controlled player.
2: Now accepting new client connections.

For introductory help, type 'help'.
> show changed
------------------------------------------------------------------------------
All options with non-default values
+ means you may change the option
= means the option is on its default value
------------------------------------------------------------------------------
Option        value   (min,max)      description
------------------------------------------------------------------------------
ec_max_size   + 10    (10,1000)      Size of the event cache
------------------------------------------------------------------------------
> help ec_max_size
Option: ec_max_size  -  Size of the event cache
Description:
  This defines the maximal number of events in the event cache.
Status: changeable
Value: 10, Minimum: 10, Default: 256, Maximum: 1000


'show ec_max_size' fails to show the option.


> show ec_max_size
------------------------------------------------------------------------------
Vital options
+ means you may change the option
= means the option is on its default value
------------------------------------------------------------------------------
Option        value   (min,max)      description
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Try 'show situational' or 'show rare' to show more options.
Try 'show changed' to show settings with non-default values.
------------------------------------------------------------------------------


'show a' shows the vital options that start with 'a', but so does 'show
a_bug'.


> show a_bug
------------------------------------------------------------------------------
Vital options
+ means you may change the option
= means the option is on its default value
------------------------------------------------------------------------------
Option        value   (min,max)      description
------------------------------------------------------------------------------
aifill        +=5     (0,30)         Limited number of AI players
------------------------------------------------------------------------------
Try 'show situational' or 'show rare' to show more options.
Try 'show changed' to show settings with non-default values.
------------------------------------------------------------------------------


'show migration' works (because that option has no underscore), but 'show
mgr_distance' fails.

'show bad_option' gives an error message that mentions 'bad' instead of
'bad_option'.


> show bad_option
Unknown option 'bad'.


'show mgr' shows a list of zero options, because they are not vital options.
So I cannot use 'show mgr_distance' nor 'show mgr' to see mgr_distance.
Likewise, 'show dip' shows a list of zero options, because none of them
(diplcost, diplomacy, diplchance) are vital options.


> show dip
------------------------------------------------------------------------------
Vital options
+ means you may change the option
= means the option is on its default value
------------------------------------------------------------------------------
Option        value   (min,max)      description
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Try 'show situational' or 'show rare' to show more options.
Try 'show changed' to show settings with non-default values.
------------------------------------------------------------------------------
> help dip
Help argument 'dip' is ambiguous.
Possible matches: diplcost diplomacy diplchance


I think that
* _show_ command must accept underscores, as in 'show mgr_distance'.
* _show prefix_ must show all options that match the prefix, not only vital
options.
* ec_max_size must start at 256, not 10.





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?15030>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to