summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-10-26 13:14:27 -0400
committerMichael DeHaan <mdehaan@redhat.com>2007-10-26 13:14:27 -0400
commit32255f743f04ccd46f2197431e5cc8c142a92a4b (patch)
tree456ff3d6f6b77a0b982972b5aa38e15af8193081 /func
parentaaef8c71e5b0adfe9844f5c627ad44efa0894b59 (diff)
downloadthird_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')
-rw-r--r--func/overlord/func_command.py3
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):