Method: OptionalOptions#branch_opt
- Defined in:
- lib/gitarro/opt_parser.rb
#branch_opt(opt) ⇒ Object
56 57 58 59 60 61 |
# File 'lib/gitarro/opt_parser.rb', line 56 def branch_opt(opt) desc = 'run tests only if the pr target the upstream branch specified' opt.on('-b', "--branch 'GITHUB BRANCH'", desc) do |b| @options[:branch] = b end end |