summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-29 02:06:40 +0200
committerwm4 <wm4@nowhere>2014-04-29 02:06:40 +0200
commitf2f19b34046e135e41a1c1ffa50eaa7dab1bbf22 (patch)
tree7769659a80768ae2358aa6daf246be824340d6d8
parent1800becf6a3562bbaeb568631ef47c38e613b571 (diff)
downloadmpv-f2f19b34046e135e41a1c1ffa50eaa7dab1bbf22.tar.bz2
mpv-f2f19b34046e135e41a1c1ffa50eaa7dab1bbf22.tar.xz
TOOLS/umpv: allow passing 0 files
Some might use that to just create an empty window with --force-window --idle (for whatever reasons).
-rwxr-xr-xTOOLS/umpv3
1 files changed, 1 insertions, 2 deletions
diff --git a/TOOLS/umpv b/TOOLS/umpv
index 5f867ce5fe..162ce50449 100755
--- a/TOOLS/umpv
+++ b/TOOLS/umpv
@@ -44,8 +44,7 @@ import subprocess
import fcntl
import stat
-if len(sys.argv) < 2:
- print("error: needs at least one file as argument.")
+if len(sys.argv) < 1:
sys.exit(1)
files = sys.argv[1:]
# make them absolute; also makes them safe against interpretation as options