Sha256: 9e91a9766b22355da8176c1cba071cf87bdd4c1b102f7aae30dc72cedc3f07d6
Contents?: true
Size: 495 Bytes
Versions: 3
Compression:
Stored size: 495 Bytes
Contents
#!/usr/bin/env ruby if ARGV == ["help"] || ARGV == [] || ARGV == ["--help"] puts "Commands:" exit 0 elsif ARGV == ["help", "list"] puts "inqlude list" exit 0 elsif ARGV == ["--xxx"] STDERR.puts "Unknown option" exit 0 elsif ARGV == ["list"] puts "one" puts "two" exit 0 elsif ARGV == ["ls"] puts Dir.entries(Dir.pwd).sort exit 0 elsif ARGV == ["fail"] STDERR.puts "failed" STDOUT.puts "right" exit 1 else STDERR.puts "Unrecognized arguments: #{ARGV}" exit 1 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cli_tester-0.0.4 | bin/cli_tester |
cli_tester-0.0.3 | bin/cli_tester |
cli_tester-0.0.2 | bin/cli_tester |