Actually trigger the parsing of options

This commit is contained in:
Paul van Tilburg 2014-11-20 21:40:15 +01:00
parent 41afbdd72c
commit 51257cefd1
1 changed files with 7 additions and 0 deletions

View File

@ -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|