Skip to content

Commit 3e61106

Browse files
mx4claude
andcommitted
main: make -S a real short option for --sync-and-exit
'S' was in the long-option table but not the getopt short string, so -S was not accepted and it was missing from the usage text. Add it to both. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 94e8fc8 commit 3e61106

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/bitc-cli/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ bitc_usage(void)
298298
" -C, --connect <host[,..]> connect only to these peers (host or host:port,\n"
299299
" comma-separated); skips DNS seeds/addrbook\n"
300300
" -d, --daemon daemon mode: no-ui\n"
301-
" --sync-and-exit exit as soon as headers are synced (for timing)\n"
301+
" -S, --sync-and-exit exit as soon as headers are synced (for timing)\n"
302302
" -h, --help show this help message\n"
303303
" -e, --encrypt encrypt the wallet file\n"
304304
" -n, --numPeers <maxPeers> number of peers to connect to, default is 5\n"
@@ -1134,7 +1134,7 @@ int main(int argc, char *argv[])
11341134

11351135
bitc_signal_install();
11361136

1137-
while ((c = getopt_long(argc, argv, "a:c:C:dehn:pt:Tuvz",
1137+
while ((c = getopt_long(argc, argv, "a:c:C:dehn:pt:STuvz",
11381138
long_opts, NULL)) != EOF) {
11391139
switch (c) {
11401140
case 'a': addr_label = optarg; break;

0 commit comments

Comments
 (0)