summaryrefslogtreecommitdiff
path: root/tools/dumpconfig.c
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2015-04-29 10:53:25 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2015-04-29 11:14:18 +0200
commit0ba332e82a308415d715bf8a24ebf5d649f1c071 (patch)
treebbb3855d317558fad4a740245e245371f4952d1b /tools/dumpconfig.c
parent15a563c376d5288f6ec61c20422c27352363f6e1 (diff)
downloadlvm2-0ba332e82a308415d715bf8a24ebf5d649f1c071.tar.gz
refactor: dumpconfig: keep --withcomments to display full comment and use --withsummary for one line summary
Diffstat (limited to 'tools/dumpconfig.c')
-rw-r--r--tools/dumpconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dumpconfig.c b/tools/dumpconfig.c
index 341bffa02..04d5df698 100644
--- a/tools/dumpconfig.c
+++ b/tools/dumpconfig.c
@@ -220,10 +220,10 @@ int dumpconfig(struct cmd_context *cmd, int argc, char **argv)
goto out;
}
+ if (arg_count(cmd, withsummary_ARG))
+ tree_spec.withsummary = 1;
if (arg_count(cmd, withcomments_ARG))
tree_spec.withcomments = 1;
- if (arg_count(cmd, withfullcomments_ARG))
- tree_spec.withfullcomments = 1;
if (arg_count(cmd, unconfigured_ARG))
tree_spec.unconfigured = 1;