From 32255f743f04ccd46f2197431e5cc8c142a92a4b Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 26 Oct 2007 13:14:27 -0400 Subject: When func is invoked with no-args, show instructions rather than traceback. --- func/overlord/func_command.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'func/overlord/func_command.py') 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): -- cgit