]>
git.r.bdr.sh - rbdr/lyricli.rb/blob - bin/lrc
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
22 puts Lyricli
.listSources()
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
39 Lyricli
.show_title
= true