Sha256: f578e94df92fd9413c0b18e0536f37dd6fe73fd237074090dca52341976edfbd
Contents?: true
Size: 870 Bytes
Versions: 3
Compression:
Stored size: 870 Bytes
Contents
#!/usr/bin/env ruby require "../lib/como" include Como Spec.command( "como_type_prim", "Como Tester", "2013", [ [ [ :none, :opt, :mutex ], "doc", nil, "Documentation for option\n\twith too much description\n\tfor one line." ], [ [ :one ], "file", "-f", "File argument." ], [ :switch, "debug", nil, "Enable debugging." ], [ [ :one, :opt ], "mode", "-m", "Mode." ], [ [ :one, :many, :opt ], "params", nil, "Parameters." ], [ [ :none, :one, :many, :opt ], "types", "-t", "Types." ], [ [ :none, :opt, :hidden ], "terminator", "-", "The terminator." ], [ [ :one, :many ], "dir", "-d", "Directory argument(s)." ], [ :default, "Leftovers." ], ] ) Opt.each do |o| puts "Given \"#{o.name}\": #{o.given}" puts "Value \"#{o.name}\": #{o.value}" if o.given && o.value end if Opt.external puts "External: #{Opt.external}" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
como-0.2.2 | test/como_type_prim |
como-0.2.1 | test/como_type_prim |
como-0.2.0 | test/como_type_prim |