aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-02-02 00:45:34 +0100
committerMartin Czygan <martin.czygan@gmail.com>2021-02-02 00:45:34 +0100
commita705ad0a9ed70833b27e4a51e307c25f8a24caae (patch)
tree095a43ee38a3d13eeb6d202bc7d83cafac60adfe
parentd5ade2a068e2f420b5376f07e13db66c5b43a01e (diff)
downloadfuzzycat-a705ad0a9ed70833b27e4a51e307c25f8a24caae.tar.gz
fuzzycat-a705ad0a9ed70833b27e4a51e307c25f8a24caae.zip
add -C flag for compression
-rw-r--r--fuzzycat/__main__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fuzzycat/__main__.py b/fuzzycat/__main__.py
index d9dbe9a..7845299 100644
--- a/fuzzycat/__main__.py
+++ b/fuzzycat/__main__.py
@@ -92,6 +92,7 @@ def run_cluster(args):
cluster = Cluster(iterable=fileinput.input(args.files),
key=types.get(args.type),
tmpdir=args.tmpdir,
+ compress=args.compress,
key_denylist=key_denylist,
prefix=args.prefix)
cluster.run()
@@ -217,6 +218,7 @@ if __name__ == '__main__':
sub_cluster = subparsers.add_parser('cluster', help='group entities', parents=[parser])
sub_cluster.set_defaults(func=run_cluster)
+ sub_cluster.add_argument('-C', '--compress', action="store_true", help='compress intermediate results')
sub_cluster.add_argument('-f', '--files', default="-", help='input files')
sub_cluster.add_argument('--key-denylist', help='file path to key denylist')
sub_cluster.add_argument('--min-cluster-size',