[vlc-commits] cli: remove special case for "h" command

Rémi Denis-Courmont git at videolan.org
Sat Oct 17 20:36:00 CEST 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 17 15:59:50 2020 +0300| [a025b31389569561407e5c7a456e0540725e6633] | committer: Rémi Denis-Courmont

cli: remove special case for "h" command

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

 modules/control/cli/cli.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/modules/control/cli/cli.c b/modules/control/cli/cli.c
index a945e36e3f..4407ebeb2e 100644
--- a/modules/control/cli/cli.c
+++ b/modules/control/cli/cli.c
@@ -214,6 +214,10 @@ static const struct
     { "is_playing", IsPlaying },
     { "stats", Statistics },
     { "longhelp", Help },
+    { "h", Help },
+    { "help", Help },
+    { "H", Help },
+    { "?", Help },
     { "logout", LogOut },
     { "quit", Quit },
 };
@@ -297,12 +301,6 @@ static void Process(intf_thread_t *intf, const char *line)
     /* misc menu commands */
         switch (cmd[0])
         {
-            case 'h':
-            case 'H':
-            case '?':
-                Help(intf);
-                break;
-
             case 's':
             case 'S':
             case '\0': /* Ignore empty lines */



More information about the vlc-commits mailing list