From 5cb08ffb247f964df82ac18a3d5f4d0d3469158f Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Sat, 23 Mar 2013 12:11:40 +0100
Subject: [PATCH] Renamed the option to dump config to stdout.

Added the new config to the manual page.
---
 doc/vimb.1.txt | 5 +++++
 src/main.c     | 6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/doc/vimb.1.txt b/doc/vimb.1.txt
index bd7381a..02b1ad5 100644
--- a/doc/vimb.1.txt
+++ b/doc/vimb.1.txt
@@ -21,6 +21,11 @@ of an XEmbed-aware application, that PROJECT will use as its parent.
 .B "-h, --help"
 Show help options.
 .TP
+.B "-d, --dump-config"
+Dump out the whole default configurations to stdout. This can be used to
+create a own config file in
+.I $XDG_CONFIG_HOME/PROJECT/config
+.TP
 .B "-v, --version"
 Print build and version information.
 .SH MODES
diff --git a/src/main.c b/src/main.c
index 494f7f4..e1ea5b2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1012,12 +1012,12 @@ int main(int argc, char* argv[])
 {
     static char* winid = NULL;
     static gboolean ver = false;
-    static gboolean print_config = false;
+    static gboolean dump = false;
     static GError* err;
     static GOptionEntry opts[] = {
         {"version", 'v', 0, G_OPTION_ARG_NONE, &ver, "Print version", NULL},
         {"embed", 'e', 0, G_OPTION_ARG_STRING, &winid, "Reparents to window specified by xid", NULL},
-        {"print-config", 'D', 0, G_OPTION_ARG_NONE, &print_config, "Print the value of all configuration options to stdout", NULL},
+        {"dump-config", 'd', 0, G_OPTION_ARG_NONE, &dump, "Dump out the default configuration to stdout", NULL},
         {NULL}
     };
     /* Initialize GTK+ */
@@ -1032,7 +1032,7 @@ int main(int argc, char* argv[])
         fprintf(stdout, "%s/%s (build %s %s)\n", PROJECT, VERSION, __DATE__, __TIME__);
         return EXIT_SUCCESS;
     }
-    if (print_config) {
+    if (dump) {
         /* load default config */
         for (guint i = 0; default_config[i].command != NULL; i++) {
             fprintf(stdout, "%s\n", default_config[i].command);
-- 
2.20.1