ia64/xen-unstable

changeset 10508:c2e8e9b1e192

[TOOLS] Treat '--' command-line split option correctly.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Jun 22 15:09:48 2006 +0100 (2006-06-22)
parents 94e354294cca
children dab24595e529
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Thu Jun 22 14:12:01 2006 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Thu Jun 22 15:09:48 2006 +0100
     1.3 @@ -276,7 +276,7 @@ for command in all_commands:
     1.4  ####################################################################
     1.5  
     1.6  def arg_check(args, name, lo, hi = -1):
     1.7 -    n = len(args)
     1.8 +    n = len([i for i in args if i != '--'])
     1.9      
    1.10      if hi == -1:
    1.11          if n != lo: