From 445d284dfaa9aef4d36c5b33a7ded459cbc8d590 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 24 Jul 2022 12:50:43 +0200 Subject: [PATCH] client: Fix '-a' command-line argument for ATR The argument existed (as a long option), and was documented in the user manual - but it wasn't printed in the help message, nor was it present in the getopt_long() string. Let's fix that. Change-Id: Icfb74597dd813cee8b48b8dcf520fdd1c954338a --- src/client/remsim_client_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/remsim_client_main.c b/src/client/remsim_client_main.c index e3d3cf8..4238864 100644 --- a/src/client/remsim_client_main.c +++ b/src/client/remsim_client_main.c @@ -32,6 +32,7 @@ static void printf_help() " -p --server-port 13245 remsim-server TCP port\n" " -c --client-id <0-1023> RSPRO ClientId of this client\n" " -n --client-slot <0-1023> RSPRO SlotNr of this client\n" + " -a --atr HEXSTRING default ATR to simulate (until bankd overrides it)\n" " -e --event-script event script to be called by client\n" #ifdef USB_SUPPORT " -V --usb-vendor VENDOR_ID\n" @@ -73,7 +74,7 @@ static void handle_options(struct client_config *cfg, int argc, char **argv) { 0, 0, 0, 0 } }; - c = getopt_long(argc, argv, "hvd:i:p:c:n:e:" + c = getopt_long(argc, argv, "hvd:i:p:c:n:a:e:" #ifdef USB_SUPPORT "V:P:C:I:S:A:H:" #endif