bin/cm in docurium-0.5.0 vs bin/cm in docurium-0.6.0
- old
+ new
@@ -11,10 +11,11 @@
version Docurium::Version
desc 'Generate HTML documentation'
long_desc 'Generate HTML docs from a Docurium config file'
command :doc do |c|
+ c.flag :for, :desc => "The version to generate", :multiple => true
c.action do |global_options,options,args|
file = args.first
Docurium::CLI.doc(file, options)
end
end
@@ -32,10 +33,12 @@
pre { |global,command,options,args| true }
post { |global,command,options,args| true }
on_error do |exception|
- puts exception
- puts exception.backtrace
+ if !exception.is_a?(SystemExit)
+ puts exception
+ puts exception.backtrace
+ end
end
exit run(ARGV)