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
This commit is contained in:
Harald Welte 2022-07-24 12:50:43 +02:00
parent 628672bc72
commit 445d284dfa
1 changed files with 2 additions and 1 deletions

View File

@ -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 <path> 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