From 499b5c7261c69427fac35102fcad6be80c63d29b Mon Sep 17 00:00:00 2001 From: Alois Mahdal Date: Feb 10 2020 22:29:53 +0000 Subject: Allow overriding cleanser per call --- diff --git a/src/module.sh.skel b/src/module.sh.skel index f9e2185..875d043 100644 --- a/src/module.sh.skel +++ b/src/module.sh.skel @@ -141,6 +141,9 @@ cleanse__file() { # The default suffix is `.cleansed` and can be changed by passing # option -s followed by new suffix. # + # Using -c option, you can override cleanser command supplied + # as CLEANSE__GENERATOR envvar; the option will be preferred. + # # By default, the function submits (using jat__submit) original # file, cleansed file, unified diff between these two, and the # used cleanser script. Options -O, -C, -D and -S can be @@ -162,6 +165,7 @@ cleanse__file() { -O) s_orig=false; shift ;; -S) s_clnr=false; shift ;; -s) suffix=$2; shift 2 ;; + -c) cmaker=$2; shift 2 ;; --) shift; break ;; *) break ;; esac done