Issue #904 has been updated by Jesse Wolfe.

Branch set to ticket/0.25.x/904


----------------------------------------
Bug #904: --help option doesn't work for all commands when installed as rubygem
http://projects.reductivelabs.com/issues/904

Author: hrvojehr -
Status: Ready for Testing
Priority: Normal
Assigned to: Jesse Wolfe
Category: 
Target version: 0.25.2
Patch: None
Affected version: 0.25.1
Keywords: 
Branch: ticket/0.25.x/904


Instead of usage, for all commands it displays following:
<pre> 
puppetd --help
This file was generated by [[RubyGems]].

The application 'puppet' is installed as part of a gem, and this file is
here to facilitate running it.
</pre>

Other info:

<pre>
rdoc --version
RDoc V1.0.1 - 20041108
ruby --version
ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-linux]
</pre>

Problem:

I am not sure if this is RDoc bug or something:
RDoc.usage_no_exits executes: 
<pre>
main_program_file = caller[-1].sub(/:\d+$/, _) 
</pre>
I do pp caller in puppet, one line before calling RDoc::usage

<pre>
["/usr/lib/ruby/1.8/getoptlong.rb:613:in @each'",
 "/usr/lib/ruby/1.8/getoptlong.rb:610:in @loop'",
 "/usr/lib/ruby/1.8/getoptlong.rb:610:in @each'",
 "/usr/lib/ruby/gems/1.8/gems/puppet-0.23.2/bin/puppet:97",
 "/usr/bin/puppet:16:in @load'",
 "/usr/bin/puppet:16"]
</pre>

So, obviously he gets wrong file to read usage from.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to