diff options
author | Mattias Andrée <m@maandree.se> | 2024-12-02 20:51:28 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2024-12-02 20:51:28 +0100 |
commit | 37597db597c517498165946a141d6192560acf0e (patch) | |
tree | 09a98b10880f2740f7171f9d397711cf8ce155ff /ffget-audio-extension | |
parent | First commit (diff) | |
download | ffutils-37597db597c517498165946a141d6192560acf0e.tar.gz ffutils-37597db597c517498165946a141d6192560acf0e.tar.bz2 ffutils-37597db597c517498165946a141d6192560acf0e.tar.xz |
Second commit
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'ffget-audio-extension')
-rwxr-xr-x | ffget-audio-extension | 12 |
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 |