Sha256: 355a48c16f706478e4f698c099298831524e1ffe2d425dfde987ad8580f6019e

Contents?: true

Size: 622 Bytes

Versions: 4

Compression:

Stored size: 622 Bytes

Contents

#!/usr/bin/env ruby

#require 'uke'
require_relative '../lib/uke'
require 'rationalist'

args = Rationalist.parse(
  boolean: [:help, :version],
  string: [:style],
  default: { style: :small },
  alias: { s: :style, v: :version }
)

case
when args[:v]
  $stderr.puts Uke::VERSION
when args[:help]
  puts <<BANNER

 DESCRIPTION

    Displays popular ukulele chords

 USAGE

    Pass the chords to display as arguments

    Run without arguments for a list of included chords

 EXAMPLE

    uke-chords G B7 C Cm

BANNER
when args[:_].empty?
  Uke.new.print_chord_list
else
  Uke.new.print_chords args[:_], args[:style]
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
uke-1.0.3 bin/uke-chords
uke-1.0.2 bin/uke-chords
uke-1.0.1 bin/uke-chords
uke-1.0.0 bin/uke-chords