vendor/bundle/ruby/2.3.0/gems/sass-3.4.22/lib/sass/exec/base.rb
# Parses the command-line arguments and runs the executable.
# Calls `Kernel#exit` at the end, so it never returns.
#
# @see #parse
Parses the command-line arguments and runs the executable.
Calls `Kernel#exit` at the end, so it never returns.
Parses the command - line arguments and runs the executable . Calls ` Kernel#exit ` at the end so it never returns .
def parse!
      begin
        parse
      rescue Exception => e
        at_exit {exit 65} if e.is_a?(Sass::SyntaxError)
        raise e if @options[:trace] || e.is_a?(SystemExit)
        if e.is_a?(Sass::SyntaxError)
          $stderr.puts e.sass_backtrace_str("standard input")
        else
          $stderr.print "#{e.class}: " unless e.class == RuntimeError
          $stderr.puts e.message.to_s
        end
        $stderr.puts "  Use --trace for backtrace."
        exit 1
      end
      exit 0
    end
def parse! begin parse rescue Exception => e at_exit { exit 65 } if e . is_a? ( Sass :: SyntaxError ) raise e if @options [ :trace ] || e . is_a? ( SystemExit ) if e . is_a? ( Sass :: SyntaxError ) $stderr . puts e . sass_backtrace_str ( "standard input" ) else $stderr . print "#{e.class}: " unless e . class == RuntimeError $stderr . puts e . message . to_s end $stderr . puts "  Use --trace for backtrace." exit 1 end exit 0 end
Parses the command-line arguments and runs the executable.
Parses the command - line arguments and runs the executable .
# rubocop:disable RescueException # Exit code 65 indicates invalid data per # http://www.freebsd.org/cgi/man.cgi?query=sysexits. Setting it via # at_exit is a bit of a hack, but it allows us to rethrow when --trace # is active and get both the built-in exception formatting and the # correct exit code. # rubocop:enable RescueException
see
None