Add command-line switch to set the configuration directory
This commit is contained in:
parent
336abfc291
commit
23ce14ea2a
4
bin/hued
4
bin/hued
|
@ -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
|
||||
|
|
Reference in New Issue