]>
git.r.bdr.sh - rbdr/lyricli.rb/blob - bin/lrc
19e54562f1e0fc0226b553b0ecb9a3be90743afd
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("-t", "--title", "Shows the song title and artist") do
42 opts
.on("-h", "--help", "Shows this message") do
47 opts
.on("-v", "--version", "Show version") do