lib/steamd/cli_options.rb
def input
      o = if @input.nil?
            Steamd.language_dir
          else
            @input
          end

      raise 'input must be a directory' unless File.directory?(o)
      File.expand_path(o)
    end
def input
      o = if @input.nil?
            Steamd.language_dir
          else
            @input
          end

      raise 'input must be a directory' unless File.directory?(o)
      File.expand_path(o)
    end
Create a CliOptions object

 @example Using CliOptions
   opts = CliOptions.new(ouput: './')

 @param opts [Hash] options hash
 @option opts [String] :output the output directory
 @option opts [String] :input the output directory
 Returns the absolute path of the input directory specified by the
 cli.

 Throws an exception if the input is not a directory

 @example Getting the input path
   opts = CliOptions.new(input: '/some/dir')
   opts.input # => '/some/dir'