Add command-line switch to set the configuration directory

This commit is contained in:
Paul van Tilburg 2014-11-16 11:53:40 +01:00
parent 336abfc291
commit 23ce14ea2a
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ opt_parser = OptionParser.new do |opts|
options[:blink] = bl
end
opts.on("-c", "--config-dir [CONFDIR] ",
"set an alternative configuration directory") do |cd|
options[:config_dir] = cd
end
opts.on("-d", "--debug", "log debug output") do
options[:debug] = true
end