lib/travis/cli/command.rb in travis-1.6.15.travis.580.6 vs lib/travis/cli/command.rb in travis-1.6.15

- old
+ new

@@ -218,17 +218,18 @@ def usage_for(prefix, method) usage = "travis #{prefix}" method = method(method) if method.respond_to? :parameters method.parameters.each do |type, name| - name = "[#{name}]" if type == :opt + name = name.upcase + name = "[#{name}]" if type == :opt name = "[#{name}..]" if type == :rest usage << " #{name}" end elsif method.arity != 0 usage << " ..." end - usage << " [options]" + usage << " [OPTIONS]" end def help(info = "") parser.banner = usage self.class.description.sub(/./) { |c| c.upcase } + ".\n" + info + parser.to_s