lib/dri/commands/fetch.rb in dri-0.1.2 vs lib/dri/commands/fetch.rb in dri-0.1.3

- old
+ new

@@ -44,8 +44,20 @@ else require_relative 'fetch/failures' Dri::Commands::Fetch::Failures.new(options).execute end end + + desc 'quarantines', 'Display open quarantine MRs' + method_option :help, aliases: '-h', type: :boolean, + desc: 'Display usage information' + def quarantines(*) + if options[:help] + invoke :help, ['quarantines'] + else + require_relative 'fetch/quarantines' + Dri::Commands::Fetch::Quarantines.new(options).execute + end + end end end end