From: Oleg Broytman Date: Sat, 6 Feb 2016 14:24:12 +0000 (+0300) Subject: Fix a minor bug: allow to process all input files X-Git-Tag: 0.0.4~56 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=0d4b773673c36d8835f2277dca403aa8d5079ff2;p=m_librarian.git Fix a minor bug: allow to process all input files --- 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:]: