man/man_helper.rb in motherbrain-1.0.0 vs man/man_helper.rb in motherbrain-1.1.0
- old
+ new
@@ -43,19 +43,19 @@
banner_proc = lambda { |klass, command_name|
klass.instance_eval do
meth = normalize_command_name(command_name)
command = all_commands[meth]
- banner(command).sub(/\S+:/,'')
+ banner(command).sub(/\S+:/,'').sub(/` :/,'` ')
end
}
documentation_proc = lambda { |klass, command_name|
klass.instance_eval do
meth = normalize_command_name(command_name)
command = all_commands[meth]
- [banner(command).sub(/\S+:/,''), command.description, command.long_description, command.options]
+ [banner(command).sub(/\S+:/,'').sub(/` :/,'` '), command.description, command.long_description, command.options]
end
}
MB::CliGateway.commands.each do |command|
commands << banner_proc.call(MB::CliGateway, command[0])
@@ -76,6 +76,5 @@
file.puts template.result(binding)
end
end
end
end
-