]>
git.r.bdr.sh - rbdr/lyricli.rb/blob - bin/lrc
3f71d87cc35212ea49a870c0f66d041d123b8503
6 OptionParser
.new
do |opts
|
10 lrc You must enable other sources for this
15 opts
.on("-e", "--enable SOURCE", "Enable SOURCE") do |source
|
16 Lyricli
.enable(source
)
17 puts
"#{source} has been enabled"
21 opts
.on("-l", "--list-sources", "List all available Sources") do
26 opts
.on("-d", "--disable SOURCE", "Disable SOURCE") do |source
|
27 Lyricli
.disable(source
)
28 puts
"#{source} has been disabled"
32 opts
.on("-r", "--reset SOURCE", "Reset the configuration of SOURCE") do |source
|
34 puts
"#{source} has been disabled and all its configuration reset"
38 opts
.on("-h", "--help", "Shows this message") do
43 opts
.on("-v", "--version", "Show version") do