options: make --h list options according to a pattern passed to it

Useless feature, but I want it.

Won't work on Windows due to missing fnmatch().
This commit is contained in:
wm4
2016-09-10 16:29:24 +02:00
parent ebc04333d2
commit 484328fe04
5 changed files with 29 additions and 10 deletions

View File

@@ -97,6 +97,7 @@ const char mp_help_text[] =
" --playlist=<file> specify playlist file\n"
"\n"
" --list-options list all mpv options\n"
" --h=<pat> print options which match the given shell pattern\n"
"\n";
static const char def_config[] =