Page MenuHomeFreeBSD

sysctl has not -R option
ClosedPublic

Authored by asiciliano on Jan 29 2019, 1:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 22 2024, 9:49 PM
Unknown Object (File)
Mar 22 2024, 9:49 PM
Unknown Object (File)
Mar 22 2024, 9:49 PM
Unknown Object (File)
Mar 8 2024, 12:34 PM
Unknown Object (File)
Feb 13 2024, 9:15 AM
Unknown Object (File)
Jan 5 2024, 2:02 PM
Unknown Object (File)
Jan 5 2024, 2:02 PM
Unknown Object (File)
Jan 5 2024, 2:02 PM

Details

Summary

This commit 244106 implemented -T and -W options but -R was added to the manual page (.Sh SYNOPSIS).

Test Plan
% sysctl -Ra
sysctl: illegal option -- R
usage: sysctl [-bdehiNnoqTtWx] [ -B <bufsize> ] [-f filename] name[=value] ...
       sysctl [-bdehNnoqTtWx] [ -B <bufsize> ] -a

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

0mp added a subscriber: 0mp.

Nice find!

This revision is now accepted and ready to land.Jan 29 2019, 10:18 AM

I think it should be NRTbdehnotqx, shouldn't it? I'm sure most of our manpages are like that.

I think it should be NRTbdehnotqx, shouldn't it? I'm sure most of our manpages are like that.

It depends. ls(1) has -ABab while grep(1) has -AaBb. Personally, I prefer -AaBb. It's also what the example for the Fl macro suggests in mdoc(7):

.Op Fl 1AaCcdFfgHhikLlmnopqRrSsTtux
In D19012#406701, @0mp wrote:

I think it should be NRTbdehnotqx, shouldn't it? I'm sure most of our manpages are like that.

It depends. ls(1) has -ABab while grep(1) has -AaBb. Personally, I prefer -AaBb. It's also what the example for the Fl macro suggests in mdoc(7):

.Op Fl 1AaCcdFfgHhikLlmnopqRrSsTtux

The official style is AaBbCc not ABCabc. This is true for both the usage() message in the program and the usage in the man page. longopts are a total crap shoot, we have no standard for those, but single letter ops are well known: alphabetical order, with the upper case of the letter immediately before the lower case.

Thank you all for the comments,
Could you commit the diff? Thanks.

ygy added a subscriber: ygy.

I will go ahead and commit it.

This revision was automatically updated to reflect the committed changes.