diff options
author | Jesse Wolfe <jes5199@gmail.com> | 2010-04-13 14:53:44 -0700 |
---|---|---|
committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
commit | 1d8bd0d9308413b2f0772a65ee76d69d8fa5959b (patch) | |
tree | 66117b98ff550ee0352fe3d599b98137044691da /lib/puppet/application | |
parent | 722a27fd49fc2c5ac16123e9e34967db025178f5 (diff) | |
download | puppet-1d8bd0d9308413b2f0772a65ee76d69d8fa5959b.tar.gz puppet-1d8bd0d9308413b2f0772a65ee76d69d8fa5959b.tar.xz puppet-1d8bd0d9308413b2f0772a65ee76d69d8fa5959b.zip |
Fix #3552 single executable should display usage
Added some tests to make the single executable command behavior
explicit.
Added logic to display the usage message if we're on a tty and no
arguments are passed.
Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
Diffstat (limited to 'lib/puppet/application')
-rw-r--r-- | lib/puppet/application/apply.rb (renamed from lib/puppet/application/main.rb) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/application/main.rb b/lib/puppet/application/apply.rb index 2952ef4ae..787ce375f 100644 --- a/lib/puppet/application/main.rb +++ b/lib/puppet/application/apply.rb @@ -4,7 +4,7 @@ require 'puppet/configurer' require 'puppet/network/handler' require 'puppet/network/client' -Puppet::Application.new(:main) do +Puppet::Application.new(:apply) do should_parse_config |