bin/toadie in toadie-0.0.7 vs bin/toadie in toadie-0.0.8

- old
+ new

@@ -3,20 +3,12 @@ require 'toadie' require 'slop' require 'json' -opts = Slop.parse do - banner "Toadie, todo grepper, blamer, analyzer\n" - on :c, :config, 'Configuration file', :argument => :optional +opts = Slop.parse do |o| + o.string '-c', '--config', 'configuration file' end - -# puts opts.help - -# # if ARGV is `--name Lee -v` -# opts.verbose? #=> true -# opts.password? #=> false -# opts[:name] #=> 'lee' config_file = opts[:config] || File.join(Toadie.root, '.toadie.json') if File.exist?(config_file) config = JSON.parse(File.read(config_file)) Toadie.file_extensions = config["file_extensions"]