Page MenuHomeFreeBSD

beep: Sort usage and man page options
AcceptedPublic

Authored by jlduran on Wed, Nov 19, 4:02 PM.
Tags
None
Referenced Files
F137084753: D53827.id166788.diff
Fri, Nov 21, 2:55 AM
F137084676: D53827.id.diff
Fri, Nov 21, 2:55 AM
F137084593: D53827.id166780.diff
Fri, Nov 21, 2:55 AM
F137084337: D53827.id166856.diff
Fri, Nov 21, 2:54 AM
F137083477: D53827.diff
Fri, Nov 21, 2:52 AM
F136991767: D53827.id166856.diff
Thu, Nov 20, 10:42 PM
Unknown Object (File)
Thu, Nov 20, 1:39 PM
Unknown Object (File)
Thu, Nov 20, 5:12 AM

Details

Reviewers
pauamma_gundo.com
christos
Group Reviewers
manpages
Summary

Sort usage and man page options, mention possible minimum and maximum
values, and fix punctuation marks.

PR: 291092

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.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