Re: rarpd: clarify synopsis

2022-10-02 Thread Theo de Raadt
Klemens Nanni wrote: > rarpd(8) is small enough where my impression is that refining it a > little would be good, but it quickly comes down to personal taste. And I continue to disagree. Another example of the same pattern is ifconfig. Here you will see it is not documented that [-a] is

Re: rarpd: clarify synopsis

2022-10-02 Thread Klemens Nanni
On Sun, Oct 02, 2022 at 02:52:37PM +0100, Jason McIntyre wrote: > On Sun, Oct 02, 2022 at 01:07:04PM +, Klemens Nanni wrote: > > rarpd(8) either "Listen[s] on all the Ethernets attached to the system" > > or requires an explicit list, not both: > > > > $ rarpd -a em0 > > usage: rarpd

Re: rarpd: clarify synopsis

2022-10-02 Thread Klemens Nanni
On Sun, Oct 02, 2022 at 10:09:32AM -0600, Theo de Raadt wrote: > The getopt language is imprecise, and attempts to be precise with it > usually go poorly. > > For example, > > SYNOPSIS > ls [-1AaCcdFfgHhikLlmnopqRrSsTtux] [file ...] > > % ls -1AaCcdFfgHhikLlmnopqRrSsTtux > > The result

Re: rarpd: clarify synopsis

2022-10-02 Thread Theo de Raadt
The getopt language is imprecise, and attempts to be precise with it usually go poorly. For example, SYNOPSIS ls [-1AaCcdFfgHhikLlmnopqRrSsTtux] [file ...] % ls -1AaCcdFfgHhikLlmnopqRrSsTtux The result may seem surprising. I claim the result is not surprising. It is unsurprising because

Re: rarpd: clarify synopsis

2022-10-02 Thread Jason McIntyre
On Sun, Oct 02, 2022 at 01:07:04PM +, Klemens Nanni wrote: > rarpd(8) either "Listen[s] on all the Ethernets attached to the system" > or requires an explicit list, not both: > > $ rarpd -a em0 > usage: rarpd [-adflt] if0 [... ifN] > $ ./obj/rarpd -a em0 > usage: rarpd