diff options
author | wm4 <wm4@nowhere> | 2014-04-29 02:06:40 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-29 02:06:40 +0200 |
commit | f2f19b34046e135e41a1c1ffa50eaa7dab1bbf22 (patch) | |
tree | 7769659a80768ae2358aa6daf246be824340d6d8 | |
parent | 1800becf6a3562bbaeb568631ef47c38e613b571 (diff) | |
download | mpv-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-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 |