Issue #4822 has been updated by Paul Berry.
Subject changed from Puppet doc -o option appears broken to Puppet doc -o
option broken
Status changed from Accepted to Ready for Testing
% Done changed from 0 to 100
Branch set to http://github.com/stereotype441/puppet/tree/ticket/2.6.x/4822
The global "-o" option ("--onetime") was overriding the
application-specific option "-o" because global options were being
sent to the OptionParser after application-specific options.
I've modified the order in which options are sent to the OptionParser to
have the correct behavior. I also merged together the two methods that
were applying options so that the order is more explicit.
----------------------------------------
Bug #4822: Puppet doc -o option broken
http://projects.puppetlabs.com/issues/4822
Author: Paul Berry
Status: Ready for Testing
Priority: Normal
Assignee: Paul Berry
Category: documentation
Target version: 2.6.2
Affected version: 2.6.0
Keywords:
Branch: http://github.com/stereotype441/puppet/tree/ticket/2.6.x/4822
This is one of the issues underlying bug #4798. I'm splitting it out into its
own ticket so that we can keep track of it separately.
I have files in the local dir as follows:
site.pp:
<pre>
#foo
</pre>
modules/rt/manifests/rt.pp:
<pre>
# A class
class foo { }
# A define
define bar { }
# A node
node baz { }
</pre>
Now, using commit 3904ad734c483bded332fe4978e87ef46b46175d (which fixes the
"import loop detected" manifestation of bug #4798), if I run puppetdoc like
this, it works fine:
<pre>
puppet doc -m rdoc --modulepath=modules --manifest=site.pp --trace --debug
</pre>
But if I add the "-o" option:
<pre>
puppet doc -m rdoc --modulepath=modules --manifest=site.pp --trace --debug -o
/tmp/doc
</pre>
Then the only output I get is this:
<pre>
info: scanning: ["/tmp/doc"]
</pre>
And no /tmp/doc directory is created.
I've confirmed that the "-o" option used to work in 0.25.x.
--
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://projects.puppetlabs.com/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.