diff options
author | David Teigland <teigland@redhat.com> | 2015-04-15 10:56:42 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-04-15 10:56:42 -0500 |
commit | 5f6ac1c81274de2a3162764d7c4b14a80b3a5ae2 (patch) | |
tree | daf048479e6a1898f8b44afd3bc1e11f54f317a7 /tools/dumpconfig.c | |
parent | 9ce52430de8c8920e191aca8fd27be4dc8e2c96a (diff) | |
download | lvm2-5f6ac1c81274de2a3162764d7c4b14a80b3a5ae2.tar.gz |
dumpconfig: add --withfullcomments option
--withfullcomments prints all comment lines for each config option.
--withcomments prints only the first comment line, which should be
a short one-line summary of the option.
Diffstat (limited to 'tools/dumpconfig.c')
-rw-r--r-- | tools/dumpconfig.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/dumpconfig.c b/tools/dumpconfig.c index 09f2119e5..6d2108f0d 100644 --- a/tools/dumpconfig.c +++ b/tools/dumpconfig.c @@ -219,6 +219,8 @@ int dumpconfig(struct cmd_context *cmd, int argc, char **argv) if (arg_count(cmd, withcomments_ARG)) tree_spec.withcomments = 1; + if (arg_count(cmd, withfullcomments_ARG)) + tree_spec.withfullcomments = 1; if (arg_count(cmd, withversions_ARG)) tree_spec.withversions = 1; |