Added mechanism for passing arguments to mplayer from planime.
[utils.git] / planime
diff --git a/planime b/planime
index 6ab0737..60549e9 100755 (executable)
--- a/planime
+++ b/planime
@@ -48,6 +48,16 @@ while [ "${1:0:1}" = - ]; do
        -t)
            cmdline=("${cmdline[@]}" -ao oss:/dev/dsp1)
            ;;
+       -A)
+           while :; do
+               a="$1"
+               shift
+               if [ "$a" = \; ]; then
+                   break;
+               fi
+               cmdline=("${cmdline[@]}" "$a")
+           done
+           ;;
        -s)
            savepar="$1"
            shift