This allows the puppet man command to succeed if an option exists without documentation.
It was previously failing with 'err: private method `gsub' called for nil:NilClass; Signed-off-by: Dan Bode <[email protected]> --- Local-branch: issue/master/8273 lib/puppet/face/help/man.erb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/puppet/face/help/man.erb b/lib/puppet/face/help/man.erb index 90e2796..b1a833b 100644 --- a/lib/puppet/face/help/man.erb +++ b/lib/puppet/face/help/man.erb @@ -71,7 +71,7 @@ ACTIONS <% unique_options.sort.each do |name| option = action.get_option name - text = option.description || option.summary -%> + text = option.description || option.summary || '' -%> <%= '<' + option.optparse.join("> | <") + '>' %> - <%= text.gsub(/^/, ' ') %> <% end -%> -- 1.6.5.1 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
