static const vshCmdOptDef opts_save[] = {
VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE),
- VIRSH_COMMON_OPT_FILE(N_("where to save the data")),
+ {.name = "file",
+ .type = VSH_OT_DATA,
+ .flags = VSH_OFLAG_REQ,
+ .help = N_("where to save the data")
+ },
{.name = "bypass-cache",
.type = VSH_OT_BOOL,
.help = N_("avoid file system cache when saving")
};
static const vshCmdOptDef opts_save_image_dumpxml[] = {
- VIRSH_COMMON_OPT_FILE(N_("saved state file to read")),
+ {.name = "file",
+ .type = VSH_OT_DATA,
+ .flags = VSH_OFLAG_REQ,
+ .help = N_("saved state file to read")
+ },
{.name = "security-info",
.type = VSH_OT_BOOL,
.help = N_("include security sensitive information in XML dump")
};
static const vshCmdOptDef opts_save_image_define[] = {
- VIRSH_COMMON_OPT_FILE(N_("saved state file to modify")),
+ {.name = "file",
+ .type = VSH_OT_DATA,
+ .flags = VSH_OFLAG_REQ,
+ .help = N_("saved state file to modify")
+ },
{.name = "xml",
.type = VSH_OT_DATA,
.flags = VSH_OFLAG_REQ,
};
static const vshCmdOptDef opts_save_image_edit[] = {
- VIRSH_COMMON_OPT_FILE(N_("saved state file to edit")),
+ {.name = "file",
+ .type = VSH_OT_DATA,
+ .flags = VSH_OFLAG_REQ,
+ .help = N_("saved state file to edit")
+ },
{.name = "running",
.type = VSH_OT_BOOL,
.help = N_("set domain to be running on restore")
};
static const vshCmdOptDef opts_restore[] = {
- VIRSH_COMMON_OPT_FILE(N_("the state to restore")),
+ {.name = "file",
+ .type = VSH_OT_DATA,
+ .flags = VSH_OFLAG_REQ,
+ .help = N_("the state to restore")
+ },
{.name = "bypass-cache",
.type = VSH_OT_BOOL,
.help = N_("avoid file system cache when restoring")
static const vshCmdOptDef opts_dump[] = {
VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE),
- VIRSH_COMMON_OPT_FILE(N_("where to dump the core")),
+ {.name = "file",
+ .type = VSH_OT_DATA,
+ .flags = VSH_OFLAG_REQ,
+ .help = N_("where to dump the core")
+ },
VIRSH_COMMON_OPT_LIVE(N_("perform a live core dump if supported")),
{.name = "crash",
.type = VSH_OT_BOOL,