lib/git_trend/cli.rb in git-trend-0.0.5 vs lib/git_trend/cli.rb in git-trend-0.0.6

- old
+ new

@@ -12,16 +12,16 @@ desc :version, 'show version' def version say "git-trend version: #{VERSION}", :green end - desc :list, '[List] Trending repository on github' - option :list, aliases:'-l', required: false - option :since, aliases:'-s', required: false + desc :list, 'List Trending repository on github (default command)' + option :language, aliases:'-l', required: false + option :since, aliases:'-s', required: false option :description, aliases:'-d', required: false def list scraper = Scraper.new - projects = scraper.get(options[:list], options[:since]) + projects = scraper.get(options[:language], options[:since]) render(projects, !!options[:description]) rescue => e say "An unexpected #{e.class} has occurred.", :red say e.message end