mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.1062.1.4 (40f071adpADaHVr_bSwBDtkumtyL-Q)
minor UI improvements to 'xm'
This commit is contained in:
1 parent
e439cdf3ef
commit
b79a721406
2 files changed
+4
-4
No files matched your search
@@ -78,11 +78,10 @@ class Xm:
|
||||
"""
|
||||
self.name = args[0]
|
||||
if len(args) < 2:
|
||||
self.err("Missing command\nTry '%s help' for more information."
|
||||
% self.name)
|
||||
help = self.helparg(args)
|
||||
args.append('help')
|
||||
help = self.helparg(args)
|
||||
p = self.getprog(args[1], self.unknown)
|
||||
if help:
|
||||
if help or len(args) < 2:
|
||||
p.help(args[1:])
|
||||
else:
|
||||
p.main(args[1:])
|
||||
|
||||
@@ -331,6 +331,7 @@ class Opts:
|
||||
else:
|
||||
p = self.vals.defaults
|
||||
if os.path.exists(p):
|
||||
print 'Using config file %s\n' % (p)
|
||||
self.load(p, help)
|
||||
break
|
||||
else:
|
||||
|
||||