From e6cca1e43b7a84a897648a0fa6730f2f01d3bc30 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 29 Apr 2014 02:06:40 +0200 Subject: TOOLS/umpv: allow passing 0 files Some might use that to just create an empty window with --force-window --idle (for whatever reasons). --- TOOLS/umpv | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3