From af0f08649722aff94ea3ec0d4133580b25ec4e29 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Fri, 17 Sep 2021 17:29:46 +0200 Subject: [PATCH] pySim-prog: rename card_handler option to card_handler_config The option and also the dest variable in the code are currently named card_handler. This might be confusing since the variable actually refers to a config file and therefore should be called "card_handler_config" Change-Id: If93751e815cb46f9ff3f56b54e612d77fe1a6dfd --- pySim-prog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pySim-prog.py b/pySim-prog.py index 3b69bb32..a3235b42 100755 --- a/pySim-prog.py +++ b/pySim-prog.py @@ -200,7 +200,7 @@ def parse_options(): parser.add_option("--dry-run", dest="dry_run", help="Perform a 'dry run', don't actually program the card", default=False, action="store_true") - parser.add_option("--card_handler", dest="card_handler", metavar="FILE", + parser.add_option("--card_handler", dest="card_handler_config", metavar="FILE", help="Use automatic card handling machine") (options, args) = parser.parse_args() @@ -740,8 +740,8 @@ if __name__ == '__main__': # Batch mode init init_batch(opts) - if opts.card_handler: - ch = CardHandlerAuto(sl, opts.card_handler) + if opts.card_handler_config: + ch = CardHandlerAuto(sl, opts.card_handler_config) else: ch = CardHandler(sl)