]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/commitdiff
Fix a use of the cfg object before it was created.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 9 Dec 2013 16:23:01 +0000 (11:23 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 9 Dec 2013 16:23:01 +0000 (11:23 -0500)
bin/whatever-dl

index b3ed1ca5dc52a541e1654fee97babc7b1bc55498..a40af28fab676f14b3ac36084c3bbdb7ca7cb731 100755 (executable)
@@ -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])