mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
args: recognize 'json_std' for --reportformat cmd line arg
This commit is contained in:
parent
6cba28a335
commit
aa7cec61ed
@ -677,7 +677,9 @@ arg(reportformat_ARG, '\0', "reportformat", reportformat_VAL, 0, 0,
|
||||
"\\fBbasic\\fP is the original format with columns and rows.\n"
|
||||
"If there is more than one report per command, each report is prefixed\n"
|
||||
"with the report name for identification. \\fBjson\\fP produces report\n"
|
||||
"output in JSON format. See \\fBlvmreport\\fP(7) for more information.\n")
|
||||
"output in JSON format. \\fBjson_std\\fP produces report output in\n"
|
||||
"JSON format which is more compliant with JSON standard.\n"
|
||||
"See \\fBlvmreport\\fP(7) for more information.\n")
|
||||
|
||||
arg(restorefile_ARG, '\0', "restorefile", string_VAL, 0, 0,
|
||||
"In conjunction with --uuid, this reads the file (produced by\n"
|
||||
|
@ -1058,7 +1058,8 @@ int syncaction_arg(struct cmd_context *cmd, struct arg_values *av)
|
||||
int reportformat_arg(struct cmd_context *cmd, struct arg_values *av)
|
||||
{
|
||||
if (!strcmp(av->value, "basic") ||
|
||||
!strcmp(av->value, "json"))
|
||||
!strcmp(av->value, "json") ||
|
||||
!strcmp(av->value, "json_std"))
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ val(metadatacopies_VAL, metadatacopies_arg, "unused", "unused")
|
||||
val(polloperation_VAL, polloperation_arg, "PollOp", "pvmove|convert|merge|merge_thin")
|
||||
val(writemostly_VAL, writemostly_arg, "WriteMostlyPV", "PV[:t|n|y]")
|
||||
val(syncaction_VAL, syncaction_arg, "SyncAction", "check|repair")
|
||||
val(reportformat_VAL, reportformat_arg, "ReportFmt", "basic|json")
|
||||
val(reportformat_VAL, reportformat_arg, "ReportFmt", "basic|json|json_std")
|
||||
val(configreport_VAL, configreport_arg, "ConfigReport", "log|vg|lv|pv|pvseg|seg")
|
||||
val(configtype_VAL, configtype_arg, "ConfigType", "current|default|diff|full|list|missing|new|profilable|profilable-command|profilable-metadata")
|
||||
val(repairtype_VAL, repairtype_arg, "RepairType", "pv_header|metadata|label_header")
|
||||
|
Loading…
Reference in New Issue
Block a user