mirror of https://github.com/mpv-player/mpv
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:
parent
1800becf6a
commit
f2f19b3404
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue