Method: OptionalOptions#file_opt
- Defined in:
- lib/gitarro/opt_parser.rb
#file_opt(opt) ⇒ Object
80 81 82 83 84 85 |
# File 'lib/gitarro/opt_parser.rb', line 80 def file_opt(opt) file_description = 'pr_file type to run the test against: .py, .rb' opt.on('-f', "--file \'.py\'", file_description) do |file_type| [:file_type] = file_type end end |