diff cutils/shasum.py @ 100:f95918115c6b

FIX: Implement some new commandline flags in "gen_opts()" also
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 29 Apr 2022 04:57:08 +0200
parents 59253a1e6ef2
children 08fd0609fdd4
line wrap: on
line diff
--- a/cutils/shasum.py	Fri Apr 22 09:28:26 2022 +0200
+++ b/cutils/shasum.py	Fri Apr 29 04:57:08 2022 +0200
@@ -127,7 +127,8 @@
 
 
 def gen_opts(files=[], algorithm="SHA1", bsd=False, text_mode=False,
-             checklist=False, check=False, dest=None, base64=False):
+             checklist=False, check=False, dest=None, base64=False,
+             allow_distinfo=False, mmap=None):
     if text_mode:
         raise ValueError("text mode not supported")
     if checklist and check:
@@ -140,7 +141,9 @@
                               check=check,
                               text_mode=False,
                               dest=dest,
-                              base64=base64)
+                              base64=base64,
+                              allow_distinfo=allow_distinfo,
+                              mmap=mmap)
     return opts