class Commands::GlobalOption
Public Instance Methods
attach(commands)
click to toggle source
# File lib/commands.rb, line 715 def attach(commands) global_options = @commands.global_options value = global_options[@field_symbol] if value.is_a?(Array) then value << @arg elsif value == nil then global_options[@field_symbol] = @arg else raise RuntimeError, "You may not specify #{@name} twice" end return nil end