From 0d4b773673c36d8835f2277dca403aa8d5079ff2 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 6 Feb 2016 17:24:12 +0300 Subject: [PATCH] Fix a minor bug: allow to process all input files --- scripts/ml-import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ml-import.py b/scripts/ml-import.py index 6785464..73dc1a1 100755 --- a/scripts/ml-import.py +++ b/scripts/ml-import.py @@ -6,8 +6,8 @@ from m_librarian.glst import import_glst from m_librarian.inp import import_inpx if __name__ == '__main__': - if len(sys.argv) != 2: - sys.exit("Usage: %s file.inpx" % sys.argv[0]) + if len(sys.argv) < 2: + sys.exit("Usage: %s file.inpx..." % sys.argv[0]) init_db() import_glst() for inpx in sys.argv[1:]: -- 2.39.5