summaryrefslogtreecommitdiffstats
path: root/options/m_option.c
diff options
context:
space:
mode:
authorwd0 <wd@europa>2015-03-29 03:03:34 -0400
committerwm4 <wm4@nowhere>2015-03-29 13:44:34 +0200
commit38b05daf7d16898f4a63e4ccf48479d8964e6e19 (patch)
tree1a2b4577dcafb6426f2128781ed835084156cb2f /options/m_option.c
parent4f7abd5e43796c8d47cf0d33546fb647cd137cb3 (diff)
downloadmpv-38b05daf7d16898f4a63e4ccf48479d8964e6e19.tar.bz2
mpv-38b05daf7d16898f4a63e4ccf48479d8964e6e19.tar.xz
parse_commandline: fail gracefully on bad args
Args of zero length (i.e. --=) now display a proper error message. Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'options/m_option.c')
-rw-r--r--options/m_option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/m_option.c b/options/m_option.c
index ea4b8d18b9..2b34c4e918 100644
--- a/options/m_option.c
+++ b/options/m_option.c
@@ -61,7 +61,7 @@ char *m_option_strerror(int code)
case M_OPT_MISSING_PARAM:
return "option requires parameter";
case M_OPT_INVALID:
- return "option parameter could not be parsed";
+ return "option could not be parsed";
case M_OPT_OUT_OF_RANGE:
return "parameter is outside values allowed for option";
case M_OPT_DISALLOW_PARAM: