Method: Thor::Actions::ClassMethods#add_runtime_options!
- Defined in:
- lib/thor/actions.rb
#add_runtime_options! ⇒ Object
Add runtime options that help actions execution.
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/thor/actions.rb', line 48 def class_option :force, type: :boolean, aliases: "-f", group: :runtime, desc: "Overwrite files that already exist" class_option :pretend, type: :boolean, aliases: "-p", group: :runtime, desc: "Run but do not make any changes" class_option :quiet, type: :boolean, aliases: "-q", group: :runtime, desc: "Suppress status output" class_option :skip, type: :boolean, aliases: "-s", group: :runtime, desc: "Skip files that already exist" end |