lib/launch_agent/cli.rb in launch-agent-0.6.1 vs lib/launch_agent/cli.rb in launch-agent-0.7.0

- old
+ new

@@ -2,18 +2,22 @@ module CLI class OptionParser def initialize(opts, argv) @opts = opts @argv = argv + + if @argv[0] == '--' + @argv.shift + end end def agent raise 'full command must be supplied' if @argv.empty? - daemon = @opts[:daemon] - interval = @opts[:interval] - env = (@opts[:env] || '').split(',') - wdir = @opts[:wdir] + daemon = @opts['--daemon'] + interval = @opts['--interval'] + env = (@opts['--env'] || '').split(',') + wdir = @opts['--wdir'] agent = nil if daemon agent = LaunchAgent::Daemon.new(*@argv) elsif interval