[vlc-commits] help: print module name also for main

Rémi Denis-Courmont git at videolan.org
Fri Oct 25 22:02:52 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Oct 25 17:31:54 2013 +0300| [fd4ef13086a12970089b75b05381c8fadc32b724] | committer: Rémi Denis-Courmont

help: print module name also for main

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

 src/config/help.c |   17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/src/config/help.c b/src/config/help.c
index ff58488..02f07bb 100644
--- a/src/config/help.c
+++ b/src/config/help.c
@@ -347,16 +347,13 @@ static void Usage (vlc_object_t *p_this, char const *psz_search)
         b_found = true;
 
         /* Print name of module */
-        if( strcmp( "main", objname ) )
-        {
-            if( b_color )
-                utf8_fprintf( stdout, "\n " GREEN "%s" GRAY " (%s)\n",
-                              module_gettext( p_parser, p_parser->psz_longname ),
-                              objname );
-            else
-                utf8_fprintf( stdout, "\n %s\n",
-                              module_gettext(p_parser, p_parser->psz_longname ) );
-        }
+        if( b_color )
+            utf8_fprintf( stdout, "\n " GREEN "%s" GRAY " (%s)\n",
+                          module_gettext( p_parser, p_parser->psz_longname ),
+                          objname );
+        else
+            utf8_fprintf( stdout, "\n %s\n",
+                          module_gettext(p_parser, p_parser->psz_longname ) );
         if( p_parser->psz_help )
         {
             if( b_color )



More information about the vlc-commits mailing list