]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Adjustments for the VIRSH_COMMON_OPT_POOL
authorJohn Ferlan <jferlan@redhat.com>
Sat, 9 Jan 2016 13:36:23 +0000 (08:36 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 11 Jan 2016 23:14:00 +0000 (18:14 -0500)
commit70c6e677660463cb1be44a26cadc9d47dd63372d
treef3ad0be31487d69e22f990d2e728dd19486c9814
parentf688b808adf280c9dbeecfd3abfe48cc5e3ed443
virsh: Adjustments for the VIRSH_COMMON_OPT_POOL

The macro is slightly adjusted to add an argument "_helpstr". This
will be passed as a translation macro string since other uses of the
option may not have the same exact help string (such as is the case
when the uuid is not suppliable for create commands).

In virsh-pool.c - we'll create a singular VIRSH_COMMON_OPT_POOL_FULL
in order to pass along the 'N_("pool name or uuid")'

In virsh-volume.c there will be a VIRSH_COMMON_OPT_POOL_FULL and a
VIRSH_COMMON_OPT_POOL_NAME, which passes 'N_("pool name")' for
the commands that can only pass a name. There will also be a
VIRSH_COMMON_OPT_POOL_OPTIONAL which is used for the command
options which use OT_STRING and don't require the --pool argument.

Signed-off-by: John Ferlan <jferlan@redhat.com>
tools/virsh-pool.c
tools/virsh-volume.c
tools/virsh.h