X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fwhatever-dl.git;a=blobdiff_plain;f=bin%2Fwhatever-dl;fp=bin%2Fwhatever-dl;h=a40af28fab676f14b3ac36084c3bbdb7ca7cb731;hp=b3ed1ca5dc52a541e1654fee97babc7b1bc55498;hb=1d3fe29831ef6b870974671459c1a6f2c3146371;hpb=d2f92616ba7810e98aaeba52c65eb63c8f95adac diff --git a/bin/whatever-dl b/bin/whatever-dl index b3ed1ca..a40af28 100755 --- a/bin/whatever-dl +++ b/bin/whatever-dl @@ -58,6 +58,8 @@ opts.each do |opt, arg| end end +cfg = Configuration.new() + # Warn about nonsensical options. if options[:continue] and not cfg.download_method == 'wget' log.warn("The --continue flag does nothing unless download_method is wget.") @@ -74,8 +76,6 @@ if (ARGV.length < 1) then end -cfg = Configuration.new() - # Factory method. site = Website.create(ARGV[0])