]> git.sesse.net Git - vlc/commitdiff
Display module's psz_help in help output (see next commit on modules.c for details).
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 7 Apr 2007 20:12:41 +0000 (20:12 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 7 Apr 2007 20:12:41 +0000 (20:12 +0000)
src/libvlc-common.c

index 68c8954e7a4f1df4315f27a024ab864073a4e726..48f66e8e23792630ebdeb04c5df378de5c8b6625 100644 (file)
@@ -1384,6 +1384,13 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
             else
                 utf8_fprintf( stdout, "\n %s\n", p_parser->psz_longname );
         }
+        if( p_parser->psz_help )
+        {
+            if( b_color )
+                utf8_fprintf( stdout, CYAN" %s\n"GRAY, p_parser->psz_help );
+            else
+                utf8_fprintf( stdout, " %s\n", p_parser->psz_help );
+        }
 
         b_help_module = !strcmp( "help", p_parser->psz_object_name );