lib/bhook/args_parser.rb in bhook-0.1.1 vs lib/bhook/args_parser.rb in bhook-0.1.2

- old
+ new

@@ -1,8 +1,8 @@ module Bhook class ArgsParser - Options = Struct.new(:source, :output, :watch, :typechecking, :theme, :generate_theme) + Options = Struct.new(:source, :output, :watch, :verbose, :theme, :generate_theme) def initialize(argv) @args = Options.new(nil, nil, false, false, nil, nil) @argv = argv.clone @opt_parser = build_opt_parser @@ -52,9 +52,15 @@ opts.on("-w", "--watch", FalseClass, "Continuously watch the source directory for changes and generate output") do @args.watch = true + end + + opts.on("-v", "--verbose", + FalseClass, + "Print detailed information about files as they are processed") do + @args.verbose = true end opts.on("-tPATH", "--theme=PATH", String, "Path to directory containing theme files to use when generating html") do |path|