Removed useless --dump-config option.
authorDaniel Carl <danielcarl@gmx.de>
Sat, 19 Oct 2013 18:24:35 +0000 (20:24 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 19 Oct 2013 18:24:35 +0000 (20:24 +0200)
This allowed to print only those options, that where defined in default.h, but
this isn't the whole default config (lags the webkit settings) so it might not
be very useful. Maybe it will be readded later together with new ex command
:set all.

doc/vimb.1
src/main.c

index 15aaa43..f4ac17c 100644 (file)
@@ -24,10 +24,6 @@ of an XEmbed-aware application, that vimb will use as its parent.
 .TP
 .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/vimb/config
 .TP
 .B "\-v, \-\-version"
index 50b9eee..499cc62 100644 (file)
@@ -985,7 +985,7 @@ static void download_progress_cp(WebKitDownload *download, GParamSpec *pspec)
 int main(int argc, char *argv[])
 {
     static char *winid = NULL;
-    static gboolean ver = false, dump = false;
+    static gboolean ver = false;
     static GError *err;
 
     vb.custom_config = NULL;
@@ -993,7 +993,6 @@ int main(int argc, char *argv[])
         {"version", 'v', 0, G_OPTION_ARG_NONE, &ver, "Print version", NULL},
         {"config", 'c', 0, G_OPTION_ARG_STRING, &vb.custom_config, "Custom cufiguration file", NULL},
         {"embed", 'e', 0, G_OPTION_ARG_STRING, &winid, "Reparents to window specified by xid", NULL},
-        {"dump-config", 'd', 0, G_OPTION_ARG_NONE, &dump, "Dump out the default configuration to stdout", NULL},
         {NULL}
     };
     /* Initialize GTK+ */
@@ -1008,13 +1007,6 @@ int main(int argc, char *argv[])
         fprintf(stdout, "%s/%s\n", PROJECT, VERSION);
         return EXIT_SUCCESS;
     }
-    if (dump) {
-        /* load default config */
-        for (guint i = 0; default_config[i] != NULL; i++) {
-            fprintf(stdout, "%s\n", default_config[i]);
-        }
-        return EXIT_SUCCESS;
-    }
 
     /* save arguments */
     args = argv;