Commit 2ea7cab6 authored by Antoine Cellerier's avatar Antoine Cellerier

Display module's psz_help in help output (see next commit on modules.c for details).

parent fbeb7e7f
...@@ -1384,6 +1384,13 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name ) ...@@ -1384,6 +1384,13 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
else else
utf8_fprintf( stdout, "\n %s\n", p_parser->psz_longname ); 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 ); b_help_module = !strcmp( "help", p_parser->psz_object_name );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment