Sha256: a8dddc298c6e195abe9aa0ffbbc42ee8935cdf94e7945f66fc2d6ad089b5a5d3

Contents?: true

Size: 475 Bytes

Versions: 3

Compression:

Stored size: 475 Bytes

Contents

#!/usr/bin/env ruby -W

require 'rubygems'
require 'bcdatabase/commands'

module Bcdatabase::Commands
  UTILITY_NAME = File.basename(__FILE__)
end

###### MAIN

command = ARGV.shift
unless command
  $stderr.puts "Please specify a command."
  $stderr.puts Bcdatabase::Commands.help
  exit(1)
end

klass = Bcdatabase::Commands[command]
unless klass
  $stderr.puts "Unknown command #{command}."
  $stderr.puts Bcdatabase::Commands.help
  exit(2)
end

exit(klass.new(ARGV).main)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bcdatabase-1.0.6 bin/bcdatabase
bcdatabase-1.0.5 bin/bcdatabase
bcdatabase-1.0.4 bin/bcdatabase