[vlc-devel] commit: 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>) (Antoine Cellerier )

git version control git at videolan.org
Tue Sep 2 01:07:53 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Tue Sep  2 00:55:36 2008 +0200| [bd69812b903d04aa686edf486c8c5f043a7aade7] | committer: Antoine Cellerier 

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>)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bd69812b903d04aa686edf486c8c5f043a7aade7
---

 src/libvlc.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 09f00b4..fc4af05 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -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( 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 );
         }




More information about the vlc-devel mailing list