Page MenuHomeFreeBSD

beep: Sort usage and man page options
ClosedPublic

Authored by jlduran on Nov 19 2025, 4:02 PM.
Tags
None
Referenced Files
F175235676: D53827.id166972.diff
Fri, Oct 9, 7:58 AM
F175184245: D53827.id166972.diff
Thu, Oct 8, 10:43 PM
F175184222: D53827.id166856.diff
Thu, Oct 8, 10:43 PM
F175184216: D53827.id166788.diff
Thu, Oct 8, 10:43 PM
F175176827: D53827.diff
Thu, Oct 8, 9:40 PM
Unknown Object (File)
Sat, Oct 3, 10:47 PM
Unknown Object (File)
Sat, Oct 3, 2:07 PM
Unknown Object (File)
Sat, Oct 3, 2:03 PM

Details

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68770
Build 65653: arc lint + arc unit

Event Timeline

Manual page changes look OK to me with this nit fixed.

usr.bin/beep/beep.1
57

Consistent naming with usage().

This revision is now accepted and ready to land.Nov 19 2025, 4:59 PM
jlduran marked an inline comment as done.

Address suggestions from both Phabricator and Bugzilla.

This revision now requires review to proceed.Nov 19 2025, 5:55 PM

Thank you!
If there are no further suggestions, I'll commit over the weekend.

usr.bin/beep/beep.1
71–72
usr.bin/beep/beep.c
137–150

Isn't this redundant since we have the same info in the man page?

jlduran added inline comments.
usr.bin/beep/beep.1
71–72

Should we change the description as well? Given "playback" has a slightly different meaning?

usr.bin/beep/beep.c
137–150

Usually the usage is a compact version of the SYNOPSIS/DESCRIPTION of the man page. It is kept redundant in case a user decides not to install man pages.

usr.bin/beep/beep.1
71–72

Yeap.

usr.bin/beep/beep.c
137–150

I mentioned this because I don't think we do this a lot.

jlduran marked 4 inline comments as done.

Address suggestions:

  • s/playback/play/
  • s/soundcard/sound card/
usr.bin/beep/beep.c
137–150

Given it is already there, I don't think it is appropriate to remove it, or at least not in this commit.
A personal opinion is that we should strive to have both, as described in https://en.wikipedia.org/wiki/Usage_message.

This revision is now accepted and ready to land.Nov 20 2025, 3:41 PM
This revision was automatically updated to reflect the committed changes.