direct-io.hg

changeset 1682:74a48e39e4be

bitkeeper revision 1.1041.9.2 (40eac5d7QK5-_Ap_TCZ0_9b3ykFACA)

Fix for args that aren't variable assigns.
author mjw@wray-m-3.hpl.hp.com
date Tue Jul 06 15:31:35 2004 +0000 (2004-07-06)
parents 5f8c3e557ac1
children 998e616e87eb
files tools/python/xen/xm/opts.py
line diff
     1.1 --- a/tools/python/xen/xm/opts.py	Tue Jul 06 15:21:43 2004 +0000
     1.2 +++ b/tools/python/xen/xm/opts.py	Tue Jul 06 15:31:35 2004 +0000
     1.3 @@ -283,10 +283,14 @@ class Opts:
     1.4                  self.usage()
     1.5          xargs = []
     1.6          for arg in args:
     1.7 -            (k, v) = arg.split('=', 1)
     1.8 -            for opt in self.options:
     1.9 -                if opt.specify(k, v): break
    1.10 -            else:
    1.11 +            isvar = 0
    1.12 +            if '=' in arg:
    1.13 +                (k, v) = arg.split('=', 1)
    1.14 +                for opt in self.options:
    1.15 +                    if opt.specify(k, v):
    1.16 +                        isvar = 1
    1.17 +                        break
    1.18 +            if not isvar:
    1.19                  xargs.append(arg)
    1.20          return xargs
    1.21