]> git.sesse.net Git - vlc/commitdiff
When using -p <module name> (or --module <module name>) to look for help, also check...
authorAntoine Cellerier <dionoea@videolan.org>
Mon, 19 Mar 2007 21:34:54 +0000 (21:34 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 19 Mar 2007 21:34:54 +0000 (21:34 +0000)
src/libvlc-common.c

index 6bc0148bb0cf62b8d263c718295207f47e717971..e2ba1cf66ea1b95d4b9f721da4a963faff5ba555 100644 (file)
@@ -1319,7 +1319,15 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
         if( psz_module_name && strcmp( psz_module_name,
                                        p_parser->psz_object_name ) )
         {
-            continue;
+            char **pp_shortcut = p_parser->pp_shortcuts;
+            while( *pp_shortcut )
+            {
+                if( !strcmp( psz_module_name, *pp_shortcut ) )
+                    break;
+                pp_shortcut ++;
+            }
+            if( !*pp_shortcut )
+                continue;
         }
 
         /* Ignore modules without config options */