ia64/xen-unstable
changeset 13078:ab232025ae29
Fix printing of usage when OptionError is thrown.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | Ewan Mellor <ewan@xensource.com> |
---|---|
date | Sun Dec 17 18:24:40 2006 +0000 (2006-12-17) |
parents | f944e13ce50a |
children | c700f2346f9c |
files | tools/python/xen/xm/main.py |
line diff
1.1 --- a/tools/python/xen/xm/main.py Sat Dec 16 12:54:43 2006 +0000 1.2 +++ b/tools/python/xen/xm/main.py Sun Dec 17 18:24:40 2006 +0000 1.3 @@ -1802,7 +1802,7 @@ def _run_cmd(cmd, cmd_name, args): 1.4 except OptionError, e: 1.5 err(str(e)) 1.6 _usage(cmd_name) 1.7 - print e.usage() 1.8 + print e.usage 1.9 except security.ACMError, e: 1.10 err(str(e)) 1.11 except: