[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xm: Show usage message of xm commands
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1267008409 0 # Node ID ec5c9373e82192483b1b6459d1ff88b75ab182a2 # Parent 8cb6e7eff2ba154afa2d1c29cca05989023ab7fe xm: Show usage message of xm commands The following commands don't show an usage message even if we give a wrong option to the commands. - xm block-list - xm network-list - xm network2-list - xm vtpm-list - xm pci-list - xm scsi-list e.g. # xm block-list --xxx vm1 Error: option --xxx not recognized This patch shows the usage message of the commands. e.g. # xm block-list --xxx vm1 Error: option --xxx not recognized Usage: xm block-list <Domain> [--long] List virtual block devices for a domain. Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx> --- tools/python/xen/xm/main.py | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 8cb6e7eff2ba -r ec5c9373e821 tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py Wed Feb 24 10:44:30 2010 +0000 +++ b/tools/python/xen/xm/main.py Wed Feb 24 10:46:49 2010 +0000 @@ -2122,7 +2122,7 @@ def arg_check_for_resource_list(args, na (options, params) = getopt.gnu_getopt(args, 'l', ['long']) except getopt.GetoptError, opterr: err(opterr) - sys.exit(1) + usage(name) for (k, v) in options: if k in ['-l', '--long']: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |