Also treat --list-options similar to --version - localbin - leot's localbin (~/bin)
(HTM) hg clone https://bitbucket.org/iamleot/localbin
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 3c3da635be1b30099c7a74d45272255ec4eb26bb
(DIR) parent 19c5a9e741de1af4dec2c2d72e13666b0aade647
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 29 Sep 2019 22:05:42
Also treat --list-options similar to --version
(Needed by newer mps-youtube.)
Diffstat:
mpv | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff -r 19c5a9e741de -r 3c3da635be1b mpv
--- a/mpv Sun Sep 01 17:18:45 2019 +0200
+++ b/mpv Sun Sep 29 22:05:42 2019 +0200
@@ -1,10 +1,10 @@
#!/bin/sh
-# Handle `--version' special case... If just the `--version' option is requested
-# just honor it and do not append any other options in order to returns an exit
-# status of 0.
-if [ "$*" = "--version" ]; then
- /usr/pkg/bin/mpv --version
+# Handle `--version'/`--list-options' special cases.
+# Just honor them and do not append any other options in order to returns an
+# exit status of 0.
+if [ "$*" = "--version" ] || [ "$*" = "--list-options" ]; then
+ /usr/pkg/bin/mpv $*
exit 0
fi