mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
This commit is contained in:
1 parent
55bf813209
commit
7f015ff4a5
2 files changed
+2
No files matched your search
@@ -52,6 +52,7 @@ def help():
|
||||
|
||||
def main(argv):
|
||||
opts = gopts
|
||||
opts.reset()
|
||||
args = opts.parse(argv)
|
||||
|
||||
if len(args) != 2:
|
||||
|
||||
@@ -118,6 +118,7 @@ def main_dom(opts, args):
|
||||
|
||||
def main(argv):
|
||||
opts = gopts
|
||||
opts.reset()
|
||||
args = opts.parse(argv)
|
||||
if opts.vals.help:
|
||||
return
|
||||
|
||||