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
Public Class Methods
Source
# File lib/syntax_tree/cli.rb, line 482 def initialize @ignore_files = [] @plugins = [] @print_width = DEFAULT_PRINT_WIDTH @scripts = [] @extension = ".rb" @target_ruby_version = DEFAULT_RUBY_VERSION end
Public Instance Methods
Source
# File lib/syntax_tree/cli.rb, line 491 def formatter_options @formatter_options ||= Formatter::Options.new(target_ruby_version: target_ruby_version) end
Source
# File lib/syntax_tree/cli.rb, line 496 def parse(arguments) parser.parse!(arguments) end