diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-02-24 10:46:49 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-02-24 10:46:49 +0000 |
commit | d8f8f35470499fdc74e688719ba55239c237acb0 (patch) | |
tree | 2ae8d29e6e918a5b1dd16dcf33cd4e7f507c2e9d /tools | |
parent | 5040f46e36bc8b38784f32e4f7ca497274e08324 (diff) | |
download | xen-d8f8f35470499fdc74e688719ba55239c237acb0.tar.gz xen-d8f8f35470499fdc74e688719ba55239c237acb0.tar.bz2 xen-d8f8f35470499fdc74e688719ba55239c237acb0.zip |
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@jp.fujitsu.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/xm/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 73e868f2cb..0c2f942d79 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -2122,7 +2122,7 @@ def arg_check_for_resource_list(args, name): (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']: |