Sha256: 739a1b489f5edfa42fc19c4b5f9490e80a033615f5389894c079ef792205887b
Contents?: true
Size: 616 Bytes
Versions: 2
Compression:
Stored size: 616 Bytes
Contents
#!/usr/bin/env ruby require_relative "../lib/watchbuffy" require "rationalist" args = Rationalist.parse( string: ["show", "buffy-season", "angel-season"] ) options = {} if args[:show] options[:show] = args[:show].split(",") elsif args[:"buffy-season"] && !args[:"angel-season"] options[:show] = "buffy" elsif args[:"angel-season"] && !args[:"buffy-season"] options[:show] = "angel" end options[:buffy_season] = args[:"buffy-season"].split(",").map(&:to_i) if args[:"buffy-season"] options[:angel_season] = args[:"angel-season"].split(",").map(&:to_i) if args[:"angel-season"] Watchbuffy.pick(options)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watchbuffy-1.0.1 | bin/watchbuffy |
watchbuffy-1.0.0 | bin/watchbuffy |