10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/pair/cli/notify.rb', line 10
def parse!
opts = parse do |opts|
opts.banner = "Usage #{$0.split("/").last} notify" +
"\n\n" +
"Options:" +
"\n"
opts.on("-t", "--title title") do |title|
options[:title] = title
end
opts.on("-n", "--notification name") do |name|
options[:name] = name
end
opts.on("-m", "--message text") do |text|
options[:text] = text
end
opts.on("-i", "--icon url") do |url|
options[:icon] = url
end
opts.on("-s", "--sticky") do
options[:sticky] = true
end
end
end
|