def options(opts)
      opts.version = Filepreviews::VERSION
      opts.banner  = BANNER
      opts.set_program_name 'Filepreviews.io'

      opts.on('-k', '--api_key [key]', String,
              'use API key from Filepreviews.io') do |api_key|
        Filepreviews.api_key = api_key
      end

      opts.on('-s', '--secret_key [key]', String,
              'use Secret key from Filepreviews.io') do |secret_key|
        Filepreviews.secret_key = secret_key
      end

      opts.on('-m', '--metadata', 'load metadata response') do
        @metadata = true
      end

      opts.on_tail('-v', '--version', 'display the version of Filepreviews') do
        puts opts.version
        exit
      end

      opts.on_tail('-h', '--help', 'print this help') do
        puts opts.help
        exit
      end
    end
def options(opts)
      opts.version = Filepreviews::VERSION
      opts.banner  = BANNER
      opts.set_program_name 'Filepreviews.io'

      opts.on('-k', '--api_key [key]', String,
              'use API key from Filepreviews.io') do |api_key|
        Filepreviews.api_key = api_key
      end

      opts.on('-s', '--secret_key [key]', String,
              'use Secret key from Filepreviews.io') do |secret_key|
        Filepreviews.secret_key = secret_key
      end

      opts.on('-m', '--metadata', 'load metadata response') do
        @metadata = true
      end

      opts.on_tail('-v', '--version', 'display the version of Filepreviews') do
        puts opts.version
        exit
      end

      opts.on_tail('-h', '--help', 'print this help') do
        puts opts.help
        exit
      end
    end
Passes arguments from ARGV and sets metadata flag
 @param args [Array<String>] The command-line arguments
 Configures the arguments for the command
 @param opts [OptionParser]