diff options
| author | Matt Robinson <matt@puppetlabs.com> | 2011-07-26 13:03:59 -0700 |
|---|---|---|
| committer | Matt Robinson <matt@puppetlabs.com> | 2011-07-26 13:03:59 -0700 |
| commit | 4857ac928ccf1bd56d513eae201b57b12dd14a38 (patch) | |
| tree | 3ab71a6160b48e270ff3e483c1a4ebab7fa1e29c /lib/puppet/application | |
| parent | dd97d7b054df5dd1d36f32387ddf30afeefad769 (diff) | |
| parent | 778127d0c3cf01701d227ec88a8e5e6550638c35 (diff) | |
| download | puppet-4857ac928ccf1bd56d513eae201b57b12dd14a38.tar.gz puppet-4857ac928ccf1bd56d513eae201b57b12dd14a38.tar.xz puppet-4857ac928ccf1bd56d513eae201b57b12dd14a38.zip | |
Merge branch 'ticket/2.7.x/maint-show_help_for_cert_without_subcommand' into 2.7.x
* ticket/2.7.x/maint-show_help_for_cert_without_subcommand:
maint: Fix cert app to print help and exit if no subcommand
Diffstat (limited to 'lib/puppet/application')
| -rw-r--r-- | lib/puppet/application/cert.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/application/cert.rb b/lib/puppet/application/cert.rb index 162672b6a..330fba8bd 100644 --- a/lib/puppet/application/cert.rb +++ b/lib/puppet/application/cert.rb @@ -218,7 +218,8 @@ Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2.0 License if sub = self.command_line.args.shift then self.subcommand = sub else - help + puts help + exit end end result |
