lib/zold/commands/remote.rb in zold-0.6.3 vs lib/zold/commands/remote.rb in zold-0.6.4

- old
+ new

@@ -21,10 +21,11 @@ require 'slop' require 'rainbow' require 'net/http' require 'json' require 'time' +require_relative 'args' require_relative '../log' require_relative '../http' require_relative '../remotes' require_relative '../score' @@ -60,14 +61,10 @@ o.bool '--ignore-score-weakness', 'Don\'t complain when their score is too weak', default: false o.bool '--help', 'Print instructions' end - if opts.help? - @log.info(opts.to_s) - return - end - mine = opts.arguments[1..-1] + mine = Args.new(opts, @log).take || return command = mine[0] case command when 'show' show when 'clean'