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

@@ -325,9 +325,13 @@ Playback Control
Program Behavior
----------------
``--help``
``--help``, ``--h``
Show short summary of options.
You can also pass a shell pattern to this option, which will list all
matching top-level options, e.g. ``--h=*scale*`` for all options that
contain the word "scale".
``-v``
Increment verbosity level, one level for each ``-v`` found on the command
line.