Sha256: 1cf86b1c42ca819d4ddd100968fbb95a36f38526468d1ab5ff1d8144fc00b9ef

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 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."
end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dl-1.0.0 bin/dl