From 51257cefd1c04afaf95d048c3c061075151a1f7a Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Thu, 20 Nov 2014 21:40:15 +0100 Subject: [PATCH] Actually trigger the parsing of options --- bin/huec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/huec b/bin/huec index 15af04e..aa915f3 100755 --- a/bin/huec +++ b/bin/huec @@ -175,6 +175,13 @@ opt_parser = OptionParser.new do |opts| end end +begin + opt_parser.parse! +rescue OptionParser::InvalidOption => e + warn e.message + abort opt_parser.to_s +end + puts "Starting huec #{Hued::VERSION}..." bridge_cfg = YAML.load_file(File.join(options[:config_dir], "bridge.yml")) Huey.configure do |cfg|