diff options
author | wm4 <wm4@nowhere> | 2014-04-29 02:06:40 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-30 11:45:32 +0200 |
commit | e6cca1e43b7a84a897648a0fa6730f2f01d3bc30 (patch) | |
tree | aefbba7cb86885cac7104ad36fc20af57dfa9471 | |
parent | d7538d359705c3de5ea158f42fdd8721b4708809 (diff) | |
download | mpv-e6cca1e43b7a84a897648a0fa6730f2f01d3bc30.tar.bz2 mpv-e6cca1e43b7a84a897648a0fa6730f2f01d3bc30.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-x | TOOLS/umpv | 3 |
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 |