Sha256: 7db1abfbf6a658c84bcddcb1f5583589fd1a41562490ae0bda3a1a61fd29f6ec

Contents?: true

Size: 342 Bytes

Versions: 10

Compression:

Stored size: 342 Bytes

Contents

#!/usr/bin/env ruby

require "como"
include Como

# Define command line arguments:
Spec.command( "como_simple", "Programmer", "2013",
  [
    [ :single, "file",  "-f", "File argument." ],
    [ :switch, "debug", "-d", "Enable debugging." ],
  ] )

puts "  File option: #{Opt['file'].value}"
puts "  Debugging selected!" if Opt['debug'].given

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
como-0.2.4 examples/como_simple
como-0.2.3 examples/como_simple
como-0.2.2 examples/como_simple
como-0.2.1 examples/como_simple
como-0.2.0 examples/como_simple
como-0.1.7 examples/como_simple
como-0.1.6 examples/como_simple
como-0.1.5 examples/como_simple
como-0.1.4 examples/como_simple
como-0.1.3 examples/como_simple