The macro is used in one place only and the command definition will be
altered. Inline it.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
};
static const vshCmdOptDef opts_hypervisor_cpu_baseline[] = {
- VIRSH_COMMON_OPT_FILE_FULL(N_("file containing XML CPU descriptions"),
- false),
+ {.name = "file",
+ .type = VSH_OT_STRING,
+ .completer = virshCompletePathLocalExisting,
+ .help = N_("file containing XML CPU descriptions"),
+ },
{.name = "virttype",
.type = VSH_OT_STRING,
.completer = virshDomainVirtTypeCompleter,
/* Use this only for files which are existing and used locally by virsh */
#define VIRSH_COMMON_OPT_FILE(_helpstr) \
- VIRSH_COMMON_OPT_FILE_FULL(_helpstr, true)
-
-#define VIRSH_COMMON_OPT_FILE_FULL(_helpstr, required_) \
{.name = "file", \
.type = VSH_OT_STRING, \
- .required = required_, \
- .positional = required_, \
+ .required = true, \
+ .positional = true, \
.completer = virshCompletePathLocalExisting, \
.help = _helpstr \
}