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
1 changed files with 1 additions and 2 deletions

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