Sha256: 77ce394523a0b21137d1c21d9cd623b9aa9bae530f2bb2edaedd8e240af256d8

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 Bytes

Contents

#!/usr/bin/env ruby

require 'shaddox'
require 'optparse'

@doxfile = './Doxfile'
options = {
	:verbose => true
}

OptionParser.new do |opts|

	opts.banner = "Usage: shaddox [task] [options]"

	opts.on('-v', '--verboase', "Run verbosely") do
		options[:verbose] = true
	end

	opts.on('--doxfile', "Specify doxfile") do |f|
		@doxfile = f
	end

	opts.on_tail("-h", "--help", "Show help text") do
		puts opts
		exit
	end

end.parse!

task = ARGV[0] || :default

config = Shaddox::Config.new(@doxfile)
config.invoke(task, options)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shaddox-0.1.0 bin/shaddox