ia64/xen-unstable

changeset 8493:09e752a1a04a

These xm info, top, dmesg and log requre no parameter.
But log's error message differs from other 3 command's error messages,
when parameter is given.

# xm log 1
Error: 'xm log' requires 0 argument.

log Print the xend log

Other 3 commands ignore parameter.
I think it might be better symmetricalize.

Signed-off-by: Yoshinori Katase <y_katase@soft.fujitsu.com>
author emellor@leeni.uk.xensource.com
date Tue Jan 03 14:07:43 2006 +0000 (2006-01-03)
parents 9fc306e40a7c
children fbe82e680620
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Tue Jan 03 14:58:34 2006 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Tue Jan 03 14:07:43 2006 +0000
     1.3 @@ -625,6 +625,8 @@ def xm_sched_sedf(args):
     1.4      server.xend_domain_cpu_sedf_set(dom, *v)
     1.5  
     1.6  def xm_info(args):
     1.7 +    arg_check(args, "info", 0)
     1.8 +
     1.9      from xen.xend.XendClient import server
    1.10      info = server.xend_node()
    1.11      
    1.12 @@ -645,9 +647,12 @@ def xm_console(args):
    1.13  
    1.14  
    1.15  def xm_top(args):
    1.16 +    arg_check(args, "top", 0)
    1.17 +
    1.18      os.execvp('xentop', ['xentop'])
    1.19  
    1.20  def xm_dmesg(args):
    1.21 +    arg_check(args, "dmesg", 0)
    1.22      
    1.23      gopts = Opts(use="""[-c|--clear]
    1.24