Sha256: 481feff97b9beb4a794392f43d61d766eda72f25921702c5bf03d73f83f09446

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 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('-s', '--silent', "Be less verbose") do
		options[:verbose] = false
	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, options)
config.invoke(task)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shaddox-0.1.1 bin/shaddox