ia64/xen-unstable

changeset 1737:d10bc5ceda22

bitkeeper revision 1.1062.1.4 (40f071adpADaHVr_bSwBDtkumtyL-Q)

minor UI improvements to 'xm'
author iap10@labyrinth.cl.cam.ac.uk
date Sat Jul 10 22:46:05 2004 +0000 (2004-07-10)
parents eeaf210226a7
children 5e62083d519d
files tools/python/xen/xm/main.py tools/python/xen/xm/opts.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Sat Jul 10 22:44:04 2004 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Sat Jul 10 22:46:05 2004 +0000
     1.3 @@ -78,11 +78,10 @@ class Xm:
     1.4          """
     1.5          self.name = args[0]
     1.6          if len(args) < 2:
     1.7 -            self.err("Missing command\nTry '%s help' for more information."
     1.8 -                     % self.name)
     1.9 -        help = self.helparg(args)
    1.10 +        	args.append('help')
    1.11 +	help = self.helparg(args)
    1.12          p = self.getprog(args[1], self.unknown)
    1.13 -        if help:
    1.14 +        if help or len(args) < 2: 
    1.15              p.help(args[1:])
    1.16          else:
    1.17              p.main(args[1:])
     2.1 --- a/tools/python/xen/xm/opts.py	Sat Jul 10 22:44:04 2004 +0000
     2.2 +++ b/tools/python/xen/xm/opts.py	Sat Jul 10 22:46:05 2004 +0000
     2.3 @@ -331,6 +331,7 @@ class Opts:
     2.4              else:
     2.5                  p = self.vals.defaults
     2.6              if os.path.exists(p):
     2.7 +		print 'Using config file %s\n' % (p)
     2.8                  self.load(p, help)
     2.9                  break
    2.10          else: