Class: Commands::GlobalFlagOption
- Inherits:
-
CommandOption
- Object
- CommandOption
- Commands::GlobalFlagOption
- Defined in:
- lib/commands.rb
Instance Attribute Summary
Attributes inherited from CommandOption
#arg, #commands, #description, #name, #parent_commands
Instance Method Summary collapse
Methods inherited from CommandOption
Constructor Details
This class inherits a constructor from Commands::CommandOption
Instance Method Details
#attach(command) ⇒ Object
730 731 732 733 734 735 736 737 738 |
# File 'lib/commands.rb', line 730 def attach(command) = @commands. value = [@field_symbol] if value == nil then [@field_symbol] = @arg else raise RuntimeError, "You may not specify #{@name} twice" end end |