lib/pushover/optparser.rb in pushover-0.3.1 vs lib/pushover/optparser.rb in pushover-0.4.0
- old
+ new
@@ -10,10 +10,12 @@
@options = {}
on("-V", "--version", "Print version") { |version| @options[:version] = true}
on("-u", "--user USER", "Which user, can be a saved name or token.") { |o| @options[:user] = o}
on("-a", "--app APPKEY", "Which app to notify, can be a saved name or apikey.") { |o| @options[:appkey] = o}
- on("-T", "--title [TITLE]", "Set the title of the notification (optional).") { |o| @options[:title] = o}
+ on("-t", "--title [TITLE]", "Set the title of the notification (optional).") { |o| @options[:title] = o}
+ on("-p", "--priority [PRIORITY]", DecimalInteger , "Set the priority of the notification from -1 to 1 (optional).") { |o| @options[:priority] = o}
+ on("-d", "--device [DEVICE]", "Specify the device to send the notifcation to. (optional).") { |o| @options[:device] = o}
on("-c", "--config_file [FILE]", "Set the target config file.") {|o| @options[:config_file] = o}
on("--save-app NAME", "Saves the application to the config file under NAME.") { |o| @options[:save_app] = [@options[:appkey], o]}
on("--save-user NAME", "Saves the user to the config file under NAME.") { |o| @options[:save_user] = [@options[:user], o]}
end