1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-04 14:11:53 +00:00

TOOLS/umpv: allow passing 0 files

Some might use that to just create an empty window with --force-window
--idle (for whatever reasons).
This commit is contained in:
wm4 2014-04-29 02:06:40 +02:00
parent 1800becf6a
commit f2f19b3404

View File

@ -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