]> git.sesse.net Git - vlc/blobdiff - extras/analyser/zsh.cpp
Remove unmaintained and outdated config.in
[vlc] / extras / analyser / zsh.cpp
index 249f812f44631446aeb692fa4ee5f872b06e0013..318822ac15eb9e91a87c311cbf21da64480e35f0 100644 (file)
@@ -56,23 +56,18 @@ int main( int i_argc, const char **ppsz_argv )
     mumap mods;
     mcmap mods2;
     /* Create a libvlc structure */
-
-    libvlc_exception_t ex;
-    libvlc_exception_init(&ex);
-
     const char *argv[i_argc + 1];
     argv[0] = "vlc";
     for( int i = 0; i < i_argc; i++ )
         argv[i+1] = ppsz_argv[i];
-    libvlc_instance_t *p_libvlc_instance = libvlc_new(i_argc+1, argv, &ex);
+    libvlc_instance_t *p_libvlc_instance = libvlc_new(i_argc+1, argv);
 
-    if( !p_libvlc_instance || libvlc_exception_raised(&ex) )
+    if( !p_libvlc_instance )
     {
-        libvlc_exception_clear(&ex);
         return 1;
     }
 
-    printf("#compdef vlc\n\n"
+    printf("#compdef vlc cvlc rvlc svlc mvlc qvlc nvlc\n\n"
 
            "#This file is autogenerated by zsh.cpp\n"
            "typeset -A opt_args\n"
@@ -91,7 +86,6 @@ int main( int i_argc, const char **ppsz_argv )
     printf( "  \"(-H)--longhelp[print detailed help]\"\\\n" );
     printf( "  \"(--list)-l[print a list of available modules]\"\\\n" );
     printf( "  \"(-l)--list[print a list of available modules]\"\\\n" );
-    printf( "  \"--save-config[save the current command line options in the config file]\"\\\n" );
     printf( "  \"--reset-config[reset the current config to the default values]\"\\\n" );
     printf( "  \"--config[use alternate config file]\"\\\n" );
     printf( "  \"--reset-plugins-cache[resets the current plugins cache]\"\\\n" );
@@ -441,7 +435,8 @@ void PrintOption( char *psz_option, char i_short, char *psz_exclusive,
             printf( ":%s:%s\"\\\n", psz_longtext, psz_args );
         else
             printf( "\"\\\n" );
-        printf( "  \"(--%s%s)-%c[%s]", psz_option, psz_exclusive,
+
+        printf( "  \"(--%s%s)-%c[%s]", psz_option, psz_exclusive ? psz_exclusive : "",
                 i_short, psz_text );
         if( psz_args )
             printf( ":%s:%s\"\\\n", psz_longtext, psz_args );