Michal Mazurek wrote: > worms(6) does this more concisely: > > errx(1, "length (2-1024) is %s: %s", errstr,
there's multiple schools of thought here, but i've always preferred somewhat shorter error messages. we tell the user it's too small or too large already. if they need to know the exact bounds, they should consult the manual. maybe learn something else too. in the case of tos, this message is now too specific because it says that tos must be a number, but there are many keyword values that are accepted too. the user would learn this by reading the man page. > if (tos < 0 || tos > 255 || errstr || errno) > - errx(1, "illegal tos value %s", optarg); > + errx(1, "illegal tos value %s; provide a " > + "value between 0 and 255 inclusive", > + optarg);
