summaryrefslogtreecommitdiffstats
path: root/input/input.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-25 21:59:44 +0200
committerwm4 <wm4@nowhere>2015-05-25 21:59:44 +0200
commit289705daaf2986cedd0a1ae994aeda73c4b4249e (patch)
treeb1062e4a31fc7f8b734046e7cd9c54697193de7a /input/input.c
parent6bfbd4ebdcadd5c94e4e47ba9712bf550293274f (diff)
downloadmpv-289705daaf2986cedd0a1ae994aeda73c4b4249e.tar.bz2
mpv-289705daaf2986cedd0a1ae994aeda73c4b4249e.tar.xz
input: allow - as separator between commands, instead of _
Wnile it seems quite logical to me that commands use _ as word separator, while properties use -, I can't really explain the difference, and it tends to confuse users as well. So always prefer - as separator for everything. Using _ still works, and will probably forever. Not doing so would probably create too much chaos and confusion.
Diffstat (limited to 'input/input.c')
-rw-r--r--input/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input/input.c b/input/input.c
index 1a6931a12a..29d5b7831e 100644
--- a/input/input.c
+++ b/input/input.c
@@ -319,7 +319,7 @@ static mp_cmd_t *handle_test(struct input_ctx *ictx, int code)
msg = talloc_asprintf_append(msg, "(nothing)");
MP_INFO(ictx, "%s\n", msg);
- const char *args[] = {"show_text", msg, NULL};
+ const char *args[] = {"show-text", msg, NULL};
mp_cmd_t *res = mp_input_parse_cmd_strv(ictx->log, args);
talloc_free(msg);
return res;