Sha256: b1bdea739183267fc0629f1f97d5f4ae66777ca21085396838670c3473ab8d64

Contents?: true

Size: 478 Bytes

Versions: 5

Compression:

Stored size: 478 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib]))
require 'thor'
require 's3download'

def help
	S3download::Cli.start(%w{help fetch}) 
end

begin
  ENV["THOR_DEBUG"] = "1" 
  S3download::Cli.start
rescue Thor::RequiredArgumentMissingError => e
  puts "\e[31mMissing Arguments: #{e}\e[0m\n\n"
  help
rescue Thor::InvocationError => e
	puts "\e[31m#{e.to_s.gsub(/Usage:.+"/, '').chomp} but there's no such option\e[0m\n\n"
	help
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
s3_download_by_date-0.2.7 bin/s3download
s3_download_by_date-0.2.6 bin/s3download
s3_download_by_date-0.2.5 bin/s3download
s3_download_by_date-0.2.4 bin/s3download
s3_download_by_date-0.2.3 bin/s3download