|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Added support for abbreviated xm sub commands
# HG changeset patch
# User twilkie@xxxxxxxxxxxxxxxxxxxxxxx
# Node ID 0761551e993a57b81f71f0c2d306f28cba5319d5
# Parent a64ac7fafbf09edc49a2df4c9c61968758dfacd8
Added support for abbreviated xm sub commands
diff -r a64ac7fafbf0 -r 0761551e993a tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py Thu Aug 11 10:34:32 2005
+++ b/tools/python/xen/xm/main.py Thu Aug 11 12:06:32 2005
@@ -605,6 +605,10 @@
deprecated(cmd,aliases[cmd])
return commands[aliases[cmd]]
else:
+ if len( cmd ) > 1:
+ matched_commands = filter( lambda (command, func): command[
0:len(cmd) ] == cmd, commands.iteritems() )
+ if len( matched_commands ) == 1:
+ return matched_commands[0][1]
err('Sub Command %s not found!' % cmd)
usage()
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Added support for abbreviated xm sub commands,
Xen patchbot -unstable <=
|
|
|
|
|