Sha256: 520f4d659f886c1a36c6c62bf01d239f247c55257f94761a6d2d03a0e1bd6c65

Contents?: true

Size: 624 Bytes

Versions: 2

Compression:

Stored size: 624 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("-v", "--version", "Show version number") do
		puts Shaddox::VERSION
		exit
	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

2 entries across 2 versions & 1 rubygems

Version Path
shaddox-0.1.3 bin/shaddox
shaddox-0.1.2 bin/shaddox