diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-10-26 13:14:27 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-10-26 13:14:27 -0400 |
commit | 32255f743f04ccd46f2197431e5cc8c142a92a4b (patch) | |
tree | 456ff3d6f6b77a0b982972b5aa38e15af8193081 /func/overlord/func_command.py | |
parent | aaef8c71e5b0adfe9844f5c627ad44efa0894b59 (diff) | |
download | third_party-func-32255f743f04ccd46f2197431e5cc8c142a92a4b.tar.gz third_party-func-32255f743f04ccd46f2197431e5cc8c142a92a4b.tar.xz third_party-func-32255f743f04ccd46f2197431e5cc8c142a92a4b.zip |
When func is invoked with no-args, show instructions rather than traceback.
Diffstat (limited to 'func/overlord/func_command.py')
-rw-r--r-- | func/overlord/func_command.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/func/overlord/func_command.py b/func/overlord/func_command.py index 1a13233..7b491f7 100644 --- a/func/overlord/func_command.py +++ b/func/overlord/func_command.py @@ -41,6 +41,9 @@ class FuncCommandLine(command.Command): return False def handleArguments(self, args): + if len(args) < 2: + print "see the func manpage for usage" + sys.exit(411) server_string = args[0] # try to be clever about this for now if client.isServer(server_string) or self._isGlob(server_string): |