becat: change -R to -b (since it is more of a buffer size)

This commit is contained in:
Azat Khuzhin 2023-09-22 10:21:06 +02:00
parent 617cf5efa8
commit 9e4693ed07

View File

@ -321,6 +321,7 @@ static void print_usage(FILE *out, const char *name)
" -S Connect or listen with SSL\n"
" -t read timeout\n"
" -T write timeout\n"
" -b read buffer size\n"
"\n"
" -v Increase verbosity\n"
" -h Print usage\n"
@ -335,11 +336,11 @@ static struct options parse_opts(int argc, char **argv)
o.src.port = o.dst.port = 10024;
o.max_read = -1;
while ((opt = getopt(argc, argv, "p:s:R:t:T:K:" "lkSvh")) != -1) {
while ((opt = getopt(argc, argv, "p:s:b:t:T:K:" "lkSvh")) != -1) {
switch (opt) {
case 'p': o.src.port = atoi(optarg); break;
case 's': o.src.address = strdup("127.1"); break;
case 'R': o.max_read = atoi(optarg); break;
case 'b': o.max_read = atoi(optarg); break;
case 't': o.timeout.read = atoi(optarg); break;
case 'T': o.timeout.write = atoi(optarg); break;