lib/support/rdoc.rb in gli-1.2.6 vs lib/support/rdoc.rb in gli-1.3.0
- old
+ new
@@ -46,9 +46,13 @@
end
def create_rdoc
File.open("#{GLI.program_name}.rdoc",'w') do |file|
file << "= <tt>#{GLI.program_name}</tt>\n\n"
+ if GLI.program_desc
+ file << GLI.program_desc
+ file << "\n\n"
+ end
file << " "
file << GLI.program_name
file << " "
global_options = GLI.switches.merge(GLI.flags)
if (global_options && global_options.length > 0)