From 634fc7d457d61c9e805344096083e0225ec5453d Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 9 Nov 2026 15:16:59 +0700 Subject: [PATCH] trace list: accept -c given twice Most `xx list` aliases pass " -c", so adding -c yourself, eg `hf 14a list -c`, gave "extraneous option -c". Allow up to two. Co-Authored-By: Claude Opus 5.5 --- client/src/cmdtrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/cmdtrace.c b/client/src/cmdtrace.c index af9e15c47..656827348 100644 --- a/client/src/cmdtrace.c +++ b/client/src/cmdtrace.c @@ -1758,7 +1758,8 @@ int CmdTraceList(const char *Cmd) { arg_param_begin, arg_lit0("1", "buffer", "use data from trace buffer"), arg_lit0(NULL, "frame", "show frame delay times"), - arg_lit0("c", NULL, "mark CRC bytes"), + // twice when an alias that already adds -c gets one too + arg_litn("c", NULL, 0, 2, "mark CRC bytes"), arg_lit0("r", NULL, "show frame delay times relative to the previous transfer"), arg_lit0("u", NULL, "display times in microseconds instead of clock cycles"), arg_lit0("x", NULL, "show hexdump to convert to pcap(ng)\n"