class SyntaxTree::CLI::Options

This represents all of the options that can be passed to the CLI. It is responsible for parsing the list and then returning the file paths at the end.

Attributes

ignore_files[R]
plugins[R]
print_width[R]
scripts[R]
target_ruby_version[R]

Public Class Methods

new() click to toggle source
# File lib/syntax_tree/cli.rb, line 473
def initialize
  @ignore_files = []
  @plugins = []
  @print_width = DEFAULT_PRINT_WIDTH
  @scripts = []
  @target_ruby_version = DEFAULT_RUBY_VERSION
end

Public Instance Methods

formatter_options() click to toggle source
# File lib/syntax_tree/cli.rb, line 481
def formatter_options
  @formatter_options ||=
    Formatter::Options.new(target_ruby_version: target_ruby_version)
end
parse(arguments) click to toggle source
# File lib/syntax_tree/cli.rb, line 486
def parse(arguments)
  parser.parse!(arguments)
end