# File common/lib/symbiosis/utils.rb, line 36 def show_help_or_usage( filename, help ) # # Open the file, stripping the shebang line # lines = File.open(filename){|fh| fh.readlines}[1..-1] found_synopsis = false lines.each do |line| line.chomp! break if line.empty? if help and !found_synopsis found_synopsis = (line =~ /^#\s+SYNOPSIS\s*$/) next end puts line[2..-1].to_s break if help and found_synopsis and line =~ /^#\s*$/ end end