bin/ghost_writer in ghost_writer-0.2.0 vs bin/ghost_writer in ghost_writer-0.3.0
- old
+ new
@@ -16,10 +16,11 @@
where [options] are:
EOS
opt :output, "Output directory", :type => String
+ opt :format, "Output doc format (default: markdown, availables: markdown, rst)", :type => String
opt :clear, "[Caution] Clear Output directory before running specs", :default => false
end
opts = Trollop::with_standard_exception_handling parser do
raise Trollop::HelpNeeded if ARGV.empty?
@@ -27,9 +28,10 @@
end
RSpec.configure do |c|
c.include GhostWriter
GhostWriter.output_dir = opts[:output]
+ GhostWriter.output_format = opts[:format].to_sym if opts[:format]
c.after(:suite) do
GhostWriter.generate_api_doc
end
end