Browse Source

:beetle: Fix CLI help

DricomDragon 2 tháng trước cách đây
mục cha
commit
e7dbfd5c7c
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      exifScripts/exif_offset.py
  2. 1 1
      exifScripts/exif_shift.py

+ 1 - 1
exifScripts/exif_offset.py

@@ -7,7 +7,7 @@ import datetime as dt
 offset = '+02:00'
 print('Override offset with', offset)
 
-if len(sys.argv) < 1:
+if len(sys.argv) <= 1:
     print(sys.argv[0], 'img1.jpg img2.jpg')
     quit()
 

+ 1 - 1
exifScripts/exif_shift.py

@@ -7,7 +7,7 @@ import datetime as dt
 shift = dt.timedelta(hours = 1, minutes = 6)
 print('Shift exif date time by', shift)
 
-if len(sys.argv) < 1:
+if len(sys.argv) <= 1:
     print(sys.argv[0], 'img1.jpg img2.jpg')
     quit()