diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2022-08-16 16:56:06 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2022-08-17 10:47:24 +0200 |
commit | b4cc28c2ef72ee022c1a03819927e31775c18676 (patch) | |
tree | 2d027a817b5a26e53ce32e97dd8cdb9f835568af /man | |
parent | 81839cc4ebf566ea9f3e6d819c7338b98cdec374 (diff) | |
download | lvm2-b4cc28c2ef72ee022c1a03819927e31775c18676.tar.gz |
lvmconfig: add --valuesonly option
The new --valuesonly option causes the lvmconfig output to contain only
values without keys for each config node. This is practical mainly in
case where we use lvmconfig in scripts and we want to assign the value
to a different custom key or simply output the value itself without the
key.
For example:
# lvmconfig --type full activation/raid_fault_policy
raid_fault_policy="warn"
# lvmconfig --type full activation/raid_fault_policy --valuesonly
"warn"
# my_var=$(lvmconfig --type full activation/raid_fault_policy --valuesonly)
# echo $my_var
"warn"
Diffstat (limited to 'man')
-rw-r--r-- | man/lvmconfig.8_pregen | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/man/lvmconfig.8_pregen b/man/lvmconfig.8_pregen index a29255cf4..5279fa4dc 100644 --- a/man/lvmconfig.8_pregen +++ b/man/lvmconfig.8_pregen @@ -56,6 +56,8 @@ line settings from --config. .br [ \fB--validate\fP ] .br +[ \fB--valuesonly\fP ] +.br [ \fB--withsummary\fP ] .br [ \fB--withcomments\fP ] @@ -369,6 +371,11 @@ merged configuration tree, also use --mergedconfig. The validation is done even if \fBlvm.conf\fP(5) \fBconfig/checks\fP is disabled. . .HP +\fB--valuesonly\fP +.br +When printing config settings, print only values without keys. +. +.HP \fB-v\fP|\fB--verbose\fP ... .br Set verbose level. Repeat from 1 to 4 times to increase the detail |