Renamed the option to dump config to stdout.
authorDaniel Carl <danielcarl@gmx.de>
Sat, 23 Mar 2013 11:11:40 +0000 (12:11 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 23 Mar 2013 11:11:40 +0000 (12:11 +0100)
Added the new config to the manual page.

doc/vimb.1.txt
src/main.c

index bd7381a..02b1ad5 100644 (file)
@@ -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
index 494f7f4..e1ea5b2 100644 (file)
@@ -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);