Sha256: 7134a947daa20bd5d768aed36344fb8b32df23ccec99379e1759d9517c32de15

Contents?: true

Size: 590 Bytes

Versions: 1

Compression:

Stored size: 590 Bytes

Contents

#!/usr/bin/env ruby

require 'trollop'

root = File.expand_path('../../', __FILE__)
lib = "#{root}/lib"
$:.unshift lib unless $:.include?(lib)

require 'dl'

opts = Trollop::options do
  version "dl #{Dl::VERSION} (c) 2011 Mark Szymanski"
  banner <<-EOS
dl is an extremely simplified version of wget/curl, written in Ruby.

Usage:

    dl [options] <url>

Where [options] are:
EOS
  opt :raw, "Don't save downloaded data to disk, simply print it to standard output."
  opt :quiet, "Don't output any download status info."
end

Dl::be_quiet = opts[:quiet]

Dl::download ARGV[0], opts[:raw]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dl-1.1.0 bin/dl