ia64/xen-unstable

changeset 2248:64ae4d06485a

bitkeeper revision 1.1159.1.68 (41207f4fvOWkrBmvJbwpyp6JQmumEg)

Fix problems with migrate help.
author mjw@wray-m-3.hpl.hp.com
date Mon Aug 16 09:33:03 2004 +0000 (2004-08-16)
parents 929e4eab6e66
children 2186fbfd11de
files tools/python/xen/xm/main.py tools/python/xen/xm/migrate.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Mon Aug 16 09:32:12 2004 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Mon Aug 16 09:33:03 2004 +0000
     1.3 @@ -302,10 +302,10 @@ class ProgMigrate(Prog):
     1.4      info = """Migrate a domain to another machine."""
     1.5  
     1.6      def help(self, args):
     1.7 -        migrate.help(args)
     1.8 +        migrate.help([self.name] + args)
     1.9      
    1.10      def main(self, args):
    1.11 -        migrate.main(args)
    1.12 +        migrate.main([self.name] + args)
    1.13  
    1.14  xm.prog(ProgMigrate)
    1.15  
     2.1 --- a/tools/python/xen/xm/migrate.py	Mon Aug 16 09:32:12 2004 +0000
     2.2 +++ b/tools/python/xen/xm/migrate.py	Mon Aug 16 09:33:03 2004 +0000
     2.3 @@ -23,6 +23,7 @@ gopts.opt('help', short='h',
     2.4           use="Print this help.")
     2.5  
     2.6  def help(argv):
     2.7 +    gopts.argv = argv
     2.8      gopts.usage()
     2.9      
    2.10  def main(argv):