aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzycat/__main__.py
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-11-26 21:13:08 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-11-26 21:13:08 +0100
commit5962f27aced29bc40efe82113fe057e302b68fa4 (patch)
treee0fc4b1cb3cfcdf5fcf4e6b532e1101527742a80 /fuzzycat/__main__.py
parentacdbdd74783f892843170c34cdd39ede7f0bae4b (diff)
downloadfuzzycat-5962f27aced29bc40efe82113fe057e302b68fa4.tar.gz
fuzzycat-5962f27aced29bc40efe82113fe057e302b68fa4.zip
add --min-cluster-size flag to cluster subcommand
Diffstat (limited to 'fuzzycat/__main__.py')
-rw-r--r--fuzzycat/__main__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/fuzzycat/__main__.py b/fuzzycat/__main__.py
index 3a3b3ba..70ed1ab 100644
--- a/fuzzycat/__main__.py
+++ b/fuzzycat/__main__.py
@@ -77,6 +77,10 @@ if __name__ == '__main__':
sub_cluster.set_defaults(func=run_cluster)
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',
+ default=2,
+ type=int,
+ help='ignore smaller clusters')
sub_cluster.add_argument('-t',
'--type',
default='title',