[elbe-devel] [PATCH 3/5] elbepack: preprocess: rename variants variable name
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Wed Jul 3 11:10:57 CEST 2024
The commandline argument is called '--variants' the function parameter
it is used for is called 'variants', also align the option holder also
to be called 'variants'.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/commands/preprocess.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elbepack/commands/preprocess.py b/elbepack/commands/preprocess.py
index 6270541761be..938438a34c42 100644
--- a/elbepack/commands/preprocess.py
+++ b/elbepack/commands/preprocess.py
@@ -17,7 +17,7 @@ def _comma_separated_list(option, opt, value, parser):
def _add_options(oparser):
- oparser.add_option('-v', '--variants', dest='variant',
+ oparser.add_option('-v', '--variants', dest='variants',
action='callback', callback=_comma_separated_list, type=str,
help='enable only tags with empty or given variant')
@@ -57,7 +57,7 @@ def run_command(argv):
sys.exit(113)
try:
- xmlpreprocess(args[0], opt.output, opt.variant, opt.proxy, opt.gzip)
+ xmlpreprocess(args[0], opt.output, opt.variants, opt.proxy, opt.gzip)
except XMLPreprocessError as e:
print(e, file=sys.stderr)
sys.exit(114)
--
2.45.2
More information about the elbe-devel
mailing list