]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Create macro for common "domain" option
authorJohn Ferlan <jferlan@redhat.com>
Sat, 9 Jan 2016 13:36:24 +0000 (08:36 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 11 Jan 2016 23:14:00 +0000 (18:14 -0500)
commitb6fb1e245c35791aaab6497902e4af49abfbf664
tree5e3ff5eb8d4dc146c2d060b023e987dcd4686b05
parent70c6e677660463cb1be44a26cadc9d47dd63372d
virsh: Create macro for common "domain" option

Rather than continually cut-n-paste the strings into each command,
create a common macro to be used generically. The macro will take a
single argument _helpstr which will be used to pass the translatable
helpstr since not all domain options can take the same string.

The majority of the options take 'N_("domain name, id or uuid")', so
create a separate macro with a _FULL suffix while those that do not
take the same string will use the VIRSH_COMMON_OPT_DOMAIN macro.

Signed-off-by: John Ferlan <jferlan@redhat.com>
tools/virsh-domain-monitor.c
tools/virsh-domain.c
tools/virsh-snapshot.c
tools/virsh.h