diff options
| author | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-04-15 15:31:19 -0700 |
|---|---|---|
| committer | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-04-15 15:31:19 -0700 |
| commit | 9264526a7cd45c9ff5767bc6c85585eb19f01f63 (patch) | |
| tree | 4e8131a037b6352d0d3d52d7650dd9c1acf63465 /lib/puppet/face | |
| parent | ba9bd88b8b60ebe567a6d78d70782610cc281213 (diff) | |
| download | puppet-9264526a7cd45c9ff5767bc6c85585eb19f01f63.tar.gz puppet-9264526a7cd45c9ff5767bc6c85585eb19f01f63.tar.xz puppet-9264526a7cd45c9ff5767bc6c85585eb19f01f63.zip | |
(#7115) Enable default actions.
This also enables the 'help' action on the 'help'
face to serve as a default action.
Reviewed-By: Daniel Pittman
Reviewed-By: Nick Lewis
Diffstat (limited to 'lib/puppet/face')
| -rw-r--r-- | lib/puppet/face/help.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/face/help.rb b/lib/puppet/face/help.rb index 1c2da9e83..8bd495f8a 100644 --- a/lib/puppet/face/help.rb +++ b/lib/puppet/face/help.rb @@ -13,6 +13,7 @@ Puppet::Face.define(:help, '0.0.1') do desc "Which version of the interface to show help for" end + default when_invoked do |*args| # Check our invocation, because we want varargs and can't do defaults # yet. REVISIT: when we do option defaults, and positional options, we |
