Method: Glark::AppOptions#run
- Defined in:
- lib/glark/app/options.rb
#run(args) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/glark/app/options.rb', line 45 def run args @args = args read_home_rcfile if @local_config_files read_local_rcfiles end read_environment_variable # honor thy EMACS; go to grep mode if ENV["EMACS"] @output_options.style = "grep" end validate! @fileset = @input_options.create_fileset @args if @output_options.show_file_names.nil? @output_options.show_file_names = @output_options.label || !one_file? end end |