summaryrefslogtreecommitdiffstats
path: root/lib/puppet/interface/action.rb
diff options
context:
space:
mode:
authorDan Bode <dan@puppetlabs.com>2011-07-06 21:59:05 -0700
committerJeff McCune <jeff@puppetlabs.com>2011-07-10 13:03:53 -0700
commitae3ef423c03b7ef27f975dadfb67bf77ca481503 (patch)
treeb3ecb26b570730e825c0a4005913ff7370511477 /lib/puppet/interface/action.rb
parent8fe2e555ac3d57f5b6503ffe1a5466db8d6e190a (diff)
downloadpuppet-ae3ef423c03b7ef27f975dadfb67bf77ca481503.tar.gz
puppet-ae3ef423c03b7ef27f975dadfb67bf77ca481503.tar.xz
puppet-ae3ef423c03b7ef27f975dadfb67bf77ca481503.zip
(#7699) - Help should only show options once
puppet help was reprinting every option once for every alias that is had. This fix involves only storing the option.name in the @options instance var for both face and actions options. The @options_hash still maintains the list of options and aliases as its keys. Reviewed-by: Daniel Pittman (puppet-dev list)
Diffstat (limited to 'lib/puppet/interface/action.rb')
-rw-r--r--lib/puppet/interface/action.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/interface/action.rb b/lib/puppet/interface/action.rb
index 185302b07..fe77a9658 100644
--- a/lib/puppet/interface/action.rb
+++ b/lib/puppet/interface/action.rb
@@ -227,8 +227,9 @@ WRAPPER
end
end
+ @options << option.name
+
option.aliases.each do |name|
- @options << name
@options_hash[name] = option
end