lib/SANStore/cri/command.rb in shu-san-scripts-0.0.2 vs lib/SANStore/cri/command.rb in shu-san-scripts-0.1.0
- old
+ new
@@ -84,10 +84,10 @@
unless option_definitions.empty?
text << "\n"
text << "options:\n"
text << "\n"
option_definitions.sort { |x,y| x[:long] <=> y[:long] }.each do |opt_def|
- text << sprintf(" -%1s --%-10s %s\n", opt_def[:short], opt_def[:long], opt_def[:desc])
+ text << sprintf(" -%1s --%-10s %s\n\n", opt_def[:short], opt_def[:long], opt_def[:desc].wrap_and_indent(78, 20).lstrip)
end
end
# Return text
text