Method: Runfile#option
- Defined in:
- lib/runfile/dsl.rb
#option(flag, text, scope = nil) ⇒ Object
Add an option/flag to the next action (can be called multiple times)
option '-b --background', 'Start in the background'
39 40 41 |
# File 'lib/runfile/dsl.rb', line 39 def option(flag, text, scope=nil) Runner.instance.add_option flag, text, scope end |