Don't pass script args to binary.
[libdcp.git] / run / dcpdiff
index 17999383a66c0dbec9be542de8bd3c92f4c1cb7d..ab21937c9ca30eada41012e8bd87bb981e017155 100755 (executable)
@@ -2,8 +2,10 @@
 
 export LD_LIBRARY_PATH=build/src
 if [ "$1" == "--debug" ]; then
+    shift
     gdb --args build/tools/dcpdiff "$@"
 elif [ "$1" == "--valgrind" ]; then
+    shift
     valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/tools/dcpdiff "$@"
 else
     build/tools/dcpdiff "$@"