Skip to content

Commit

Permalink
Option to take config file as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
powdahound committed Oct 26, 2012
1 parent 3e3a25c commit 555df17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/campfire_export
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def ensure_config_for(config, key, prompt)
end

config = {}
config_file = File.join(ENV['HOME'], '.campfire_export.yaml')
config_file = ARGV[0] or File.join(ENV['HOME'], '.campfire_export.yaml')

if File.exists?(config_file) and File.readable?(config_file)
config = YAML.load_file(config_file)
Expand Down

0 comments on commit 555df17

Please sign in to comment.