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:
Ewan Mellor committed 2007-01-02 14:46:13 +00:00
1 parent 55bf813209
commit 7f015ff4a5
2 files changed
+2

No files matched your search

+1
View File
@@ -52,6 +52,7 @@ def help():
def main(argv):
opts = gopts
opts.reset()
args = opts.parse(argv)
if len(args) != 2:
+1
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.