Sha256: cba12d92e5b30f9d5dca4607a10f96f2c79b48e7eda26c59839017b58f5b1f4b

Contents?: true

Size: 1.49 KB

Versions: 55

Compression:

Stored size: 1.49 KB

Contents

require_relative "../file_finder"

module Standard
  module Runners
    class Help
      def call(config)
        puts <<-MESSAGE.gsub(/^ {10}/, "")
          Usage: standardrb [--fix] [-vh] [--format <name>] [--] [FILE]...

          Options:

            --fix             Automatically fix failures where possible
            --no-fix          Do not automatically fix failures
            --format <name>   Format output with any RuboCop formatter (e.g. "json")
            -v, --version     Print the version of Standard
            -h, --help        Print this message
            FILE              Files to lint [default: ./]

          Standard also forwards most CLI arguments to RuboCop. To see them, run:

            $ rubocop --help

          While Standard only offers a few configuration options, most can be set in
          a `.standard.yml` file. For full documentation, please visit:

            https://github.com/testdouble/standard

          Having trouble? Here's some diagnostic information:

                  Ruby version: #{RUBY_VERSION}
             Current directory: #{Dir.pwd}
               RuboCop version: #{RuboCop::Version.version}
              Standard version: #{Standard::VERSION}
          Standard config file: #{FileFinder.new.call(".standard.yml", Dir.pwd) || "[No file found]"}

          Please report any problems (and include the above information) at the URL below:

            https://github.com/testdouble/standard/issues/new

        MESSAGE
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
standard-1.1.1 lib/standard/runners/help.rb
standard-1.1.0 lib/standard/runners/help.rb
standard-1.0.5 lib/standard/runners/help.rb
standard-1.0.4 lib/standard/runners/help.rb
standard-1.0.3 lib/standard/runners/help.rb
standard-1.0.2 lib/standard/runners/help.rb
standard-1.0.1 lib/standard/runners/help.rb
standard-1.0.0 lib/standard/runners/help.rb
standard-0.13.0 lib/standard/runners/help.rb
standard-0.12.0 lib/standard/runners/help.rb
standard-0.11.0 lib/standard/runners/help.rb
standard-0.10.2 lib/standard/runners/help.rb
standard-0.10.1 lib/standard/runners/help.rb
standard-0.10.0 lib/standard/runners/help.rb
standard-0.9.0 lib/standard/runners/help.rb
standard-0.8.1 lib/standard/runners/help.rb
standard-0.8 lib/standard/runners/help.rb
standard-0.7 lib/standard/runners/help.rb
standard-0.6.2 lib/standard/runners/help.rb
standard-0.6.1 lib/standard/runners/help.rb