lib/whatsup_github/cli.rb in whatsup_github-0.5.0 vs lib/whatsup_github/cli.rb in whatsup_github-1.0.0

- old
+ new

@@ -5,10 +5,14 @@ require 'whatsup_github/version' module WhatsupGithub # CLI options class CLI < Thor desc 'since DATE', 'Filters pull requests since the specified date till now. Default: last 7 days.' + option :config, + desc: 'Relative path to the configuration file.', + default: '.whatsup.yml' def since(date = Date.today - 7) + WhatsupGithub::Config.filename = options[:config] runner = WhatsupGithub::Runner.new(Date.parse(date.to_s)) runner.run end desc 'version', 'Current version of the gem'