Page MenuHomeFreeBSD

beep: Sort usage and man page options
ClosedPublic

Authored by jlduran on Wed, Nov 19, 4:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 10, 7:24 PM
Unknown Object (File)
Tue, Dec 2, 4:03 PM
Unknown Object (File)
Tue, Dec 2, 4:03 PM
Unknown Object (File)
Tue, Dec 2, 4:03 PM
Unknown Object (File)
Sun, Nov 30, 1:20 PM
Unknown Object (File)
Sat, Nov 29, 12:27 PM
Unknown Object (File)
Thu, Nov 27, 11:42 PM
Unknown Object (File)
Wed, Nov 26, 7:36 AM

Details

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.Wed, Nov 19, 4:59 PM
jlduran marked an inline comment as done.

Address suggestions from both Phabricator and Bugzilla.

This revision now requires review to proceed.Wed, Nov 19, 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.Thu, Nov 20, 3:41 PM
This revision was automatically updated to reflect the committed changes.