Sha256: 186f945d8bb24c43a771fd65632050a9f68d02823e78a38ec27d7d5899dc07d2
Contents?: true
Size: 755 Bytes
Versions: 10
Compression:
Stored size: 755 Bytes
Contents
#!/usr/bin/env ruby require "../lib/como" include Como Spec.command( "como_rule_1", "Como Tester", "2013", [ [ :exclusive, "doc", nil, "Documentation." ], [ :opt_single, "file", "-f", "File argument." ], [ :switch, "debug", nil, "Enable debugging." ], [ :opt_single, "mode", "-m", "Mode." ], [ :opt_multi, "params", nil, "Parameters." ], [ :opt_any, "types", "-t", "Types." ], [ :silent, "terminator", "-", "The terminator." ], [ :opt_multi, "dir", "-d", "Directory argument(s)." ], [ :default, "Leftovers." ], ] ) Spec.check do one( none, any( 'debug', 'mode' ), incr( 'params', 'types' ), follow( '-', nil, '-d' ), all( one( 'dir' ), one( 'file' ) ), ) end
Version data entries
10 entries across 10 versions & 1 rubygems