From 7130f3b2bcd01d978a564eca9e2a4f739db22262 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Thu, 26 Jun 2008 16:45:47 -0400 Subject: fix traceback on "func '*' copyfile". aka, call with no arguments --- func/overlord/cmd_modules/copyfile.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'func') diff --git a/func/overlord/cmd_modules/copyfile.py b/func/overlord/cmd_modules/copyfile.py index 63341f2..f464575 100644 --- a/func/overlord/cmd_modules/copyfile.py +++ b/func/overlord/cmd_modules/copyfile.py @@ -42,6 +42,10 @@ class CopyFile(base_command.BaseCommand): self.verbose = self.options.verbose def do(self, args): + if not args: + self.outputUsage() + return + self.server_spec = self.parentCommand.server_spec self.getOverlord() -- cgit