From 23ce14ea2a510a252b5a16c99b9244b27ce1d6bb Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sun, 16 Nov 2014 11:53:40 +0100 Subject: [PATCH] Add command-line switch to set the configuration directory --- bin/hued | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/hued b/bin/hued index 1b24c3f..6f92920 100755 --- a/bin/hued +++ b/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