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 6bc0148..e2ba1cf 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 */