]> git.sesse.net Git - vlc/blobdiff - src/libvlc-module.c
libvlc: Add a --ignore-config options that allow not to use the config file. This...
[vlc] / src / libvlc-module.c
index 755b517aa476634cc3f2936c1552374465eed78e..43ba2b82d9b3e250bedd4bba506f96bc21436733 100644 (file)
@@ -2446,6 +2446,8 @@ vlc_module_begin();
 #define MODULE_TEXT \
     N_("print help on a specific module (can be combined with --advanced " \
        "and --help-verbose)")
+#define IGNORE_CONFIG_TEXT \
+    N_("no configuration option will be loaded nor saved to config file")
 #define SAVE_CONFIG_TEXT \
     N_("save the current command line options in the config")
 #define RESET_CONFIG_TEXT \
@@ -2482,6 +2484,9 @@ vlc_module_begin();
         change_short( 'p' );
         change_internal();
         change_unsaveable();
+    add_bool( "ignore-config", VLC_FALSE, NULL, IGNORE_CONFIG_TEXT, "", VLC_FALSE );
+        change_internal();
+        change_unsaveable();
     add_bool( "save-config", VLC_FALSE, NULL, SAVE_CONFIG_TEXT, "",
               VLC_FALSE );
         change_internal();