From cf1e888d3e76c7c04ca07dc525e7f5c7a227bf39 Mon Sep 17 00:00:00 2001 From: adamolekiewicz <52413720+adamolekiewicz@users.noreply.github.com> Date: Thu, 12 Dec 2019 09:33:04 +0100 Subject: [PATCH] Fix delimiter from config being ignored Quick and dirty fix. Problem was that there was default value of delimiter inserted into `args`. Values from `args` are used to override parameters from config file. This resulted in delimiter option in config being always overwritten with ',' . --- csvdedupe/csvhelpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csvdedupe/csvhelpers.py b/csvdedupe/csvhelpers.py index 72d64a2..727a4ec 100644 --- a/csvdedupe/csvhelpers.py +++ b/csvdedupe/csvhelpers.py @@ -241,7 +241,7 @@ def _common_args(self) : self.parser.add_argument('--recall_weight', type=int, help='Threshold that will maximize a weighted average of our precision and recall') self.parser.add_argument('-d', '--delimiter', type=str, - help='Delimiting character of the input CSV file', default=',') + help='Delimiting character of the input CSV file (default: ","') self.parser.add_argument('-v', '--verbose', action='count', default=0)