]> git.ipfire.org Git - thirdparty/libvirt.git/commit
allow name for VSH_OT_ARGV options
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 7 Jun 2011 09:11:08 +0000 (17:11 +0800)
committerEric Blake <eblake@redhat.com>
Tue, 14 Jun 2011 17:05:09 +0000 (11:05 -0600)
commit6cf77ca7bf34efc48de3e68b401ba4f5ef529ffe
tree11f5ebb8398f5a3ac0470a7d29294f8e500cf577
parenta2d401d3ba19920eae6c5ddf5d3fd7c4c0eb759e
allow name for VSH_OT_ARGV options

A name will improve the usege, example

# virsh help echo
  NAME
    echo - echo arguments

  SYNOPSIS
    echo [--shell] [--xml] [<string>]...

  DESCRIPTION
    Echo back arguments, possibly with quoting.

  OPTIONS
    --shell          escape for shell use
    --xml            escape for XML use
    <string>         arguments to echo

"[<string>]..." is added to SYNOPSIS.
"<string>         arguments to echo" is added to OPTIONS.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
tools/virsh.c