Commit bd69812b authored by Antoine Cellerier's avatar Antoine Cellerier

Print the module name in help output (else the user has no way to link the vlc...

Print the module name in help output (else the user has no way to link the vlc --list output to that of the vlc <insert a help command here> output other than by trying all the modules in --list with vlc -p <module name>)
parent c4963958
...@@ -1478,8 +1478,9 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name ) ...@@ -1478,8 +1478,9 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
if( strcmp( "main", p_parser->psz_object_name ) ) if( strcmp( "main", p_parser->psz_object_name ) )
{ {
if( b_color ) if( b_color )
utf8_fprintf( stdout, "\n " GREEN "%s" GRAY "\n", utf8_fprintf( stdout, "\n " GREEN "%s" GRAY " (%s)\n",
p_parser->psz_longname ); p_parser->psz_longname,
p_parser->psz_object_name );
else else
utf8_fprintf( stdout, "\n %s\n", p_parser->psz_longname ); utf8_fprintf( stdout, "\n %s\n", p_parser->psz_longname );
} }
......
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