Commit 3f55ec37 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>)
(cherry picked from commit bd69812b)
parent d27f1a41
......@@ -1480,8 +1480,9 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
if( strcmp( "main", p_parser->psz_object_name ) )
{
if( b_color )
utf8_fprintf( stdout, "\n " GREEN "%s" GRAY "\n",
p_parser->psz_longname );
utf8_fprintf( stdout, "\n " GREEN "%s" GRAY " (%s)\n",
p_parser->psz_longname,
p_parser->psz_object_name );
else
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