aboutsummaryrefslogtreecommitdiffstats
path: root/ffget-audio-extension
diff options
context:
space:
mode:
Diffstat (limited to 'ffget-audio-extension')
-rwxr-xr-xffget-audio-extension12
1 files changed, 3 insertions, 9 deletions
diff --git a/ffget-audio-extension b/ffget-audio-extension
index 7f0156f..8feca81 100755
--- a/ffget-audio-extension
+++ b/ffget-audio-extension
@@ -8,16 +8,10 @@ usage () {
exit 1
}
-while test "${1::1}" = '-'; do
- if test "${1}" = '--'; then
- shift
- break
- elif test "${1}" = '-'; then
- break
- else
- usage
- fi
+while getopts '' flag; do
+ usage
done
+shift $(( ${OPTIND} - 1 ))
if test ! $# = 1; then
usage