X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/4f3dbb13d02f6eb2ac2b8fea1879e9d5150166b1..HEAD:/bin/lrc?ds=sidebyside diff --git a/bin/lrc b/bin/lrc index b1a44b6..18371ab 100755 --- a/bin/lrc +++ b/bin/lrc @@ -3,8 +3,6 @@ require 'optparse' require 'lyricli' - -options = {} OptionParser.new do |opts| opts.banner = %{Usage: lrc [options] @@ -21,7 +19,7 @@ Options: end opts.on("-l", "--list-sources", "List all available Sources") do - puts Lyricli.sources + puts Lyricli.listSources() exit end @@ -37,14 +35,8 @@ Options: exit end - opts.on("-h", "--help", "Shows this message") do - puts opts - exit - end - - opts.on("-v", "--version", "Show version") do - puts Lyricli.version - exit + opts.on("-t", "--title", "Shows the song title and artist") do + Lyricli.show_title = true end end.parse!