ia64/xen-unstable
changeset 13246:6b3bb79cb1c9
Reset the option-parsing object before using it -- this means that the
option parsing works when using xm shell.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
option parsing works when using xm shell.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | Ewan Mellor <ewan@xensource.com> |
---|---|
date | Tue Jan 02 14:46:13 2007 +0000 (2007-01-02) |
parents | 2390f017e24f |
children | d6bd12ec82b5 |
files | tools/python/xen/xm/migrate.py tools/python/xen/xm/shutdown.py |
line diff
1.1 --- a/tools/python/xen/xm/migrate.py Tue Jan 02 14:45:32 2007 +0000 1.2 +++ b/tools/python/xen/xm/migrate.py Tue Jan 02 14:46:13 2007 +0000 1.3 @@ -52,6 +52,7 @@ def help(): 1.4 1.5 def main(argv): 1.6 opts = gopts 1.7 + opts.reset() 1.8 args = opts.parse(argv) 1.9 1.10 if len(args) != 2:
2.1 --- a/tools/python/xen/xm/shutdown.py Tue Jan 02 14:45:32 2007 +0000 2.2 +++ b/tools/python/xen/xm/shutdown.py Tue Jan 02 14:46:13 2007 +0000 2.3 @@ -118,6 +118,7 @@ def main_dom(opts, args): 2.4 2.5 def main(argv): 2.6 opts = gopts 2.7 + opts.reset() 2.8 args = opts.parse(argv) 2.9 if opts.vals.help: 2.10 return