#17 new
bahuvrihi

Updates for ConfigParser Output

Reported by bahuvrihi | March 7th, 2009 @ 03:27 PM

Split up nested configurations into documented sections on the command line.


  --nest:                # configs for nest
    a                    # a
    b                    # b
    c                    # c

Comments and changes to this ticket

  • bahuvrihi

    bahuvrihi March 26th, 2009 @ 09:15 PM

    Also, list select values and default values. This may require some updates/standarization of the setup_x methods (ie pass the default in, dope!).

    Hopefully some standarization will clean up this messy block:

    
        block = case attributes[:type]
        when :switch then setup_switch(key, default_value, attributes)
        when :flag   then setup_flag(key, default_value, attributes)
        when :list, :list_select then setup_list(key, attributes)
        when :hidden then return nil
        else
          if respond_to?("setup_#{attributes[:type]}")
            send("setup_#{attributes[:type]}", key, default_value, attributes)
          else
            setup_option(key, attributes)
          end
        end
    

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Class configurations that map to the command line.

People watching this ticket

Pages