lib/cli.rb
def checkout(ruleset="")
      if ruleset.empty? && options["all"].nil?
        say "Please specify either --ruleset or --all", :red
        say help "checkout"
      else
        KRL_CMD::Checkout.go(ruleset, options)
      end
    end
def checkout(ruleset="")
      if ruleset.empty? && options["all"].nil?
        say "Please specify either --ruleset or --all", :red
        say help "checkout"
      else
        KRL_CMD::Checkout.go(ruleset, options)
      end
    end
method_option :ruleset, :type => :string, :default => false, :aliases => "-r", :banner => "Ruleset ID, example: a1x1"