diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2009-06-03 00:46:00 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2009-06-03 00:46:00 +0000 |
commit | 5beca94c70db90e3d23e246dd5e9a1807168b10e (patch) | |
tree | c0c4e0da5cbc34bce713272a632220daa86d54e1 /usr.bin/cdio | |
parent | b5fa513bde74bcf77645d2952017c89627b3acd7 (diff) |
Synchronize man page and help output.
From a least of details by sobrado@; input by jmc@ who still isn't happy.
Diffstat (limited to 'usr.bin/cdio')
-rw-r--r-- | usr.bin/cdio/cdio.1 | 28 | ||||
-rw-r--r-- | usr.bin/cdio/cdio.c | 23 |
2 files changed, 29 insertions, 22 deletions
diff --git a/usr.bin/cdio/cdio.1 b/usr.bin/cdio/cdio.1 index 48800065447..e0d8ba47bf0 100644 --- a/usr.bin/cdio/cdio.1 +++ b/usr.bin/cdio/cdio.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: cdio.1,v 1.52 2009/04/10 18:51:44 ratchov Exp $ +.\" $OpenBSD: cdio.1,v 1.53 2009/06/03 00:45:59 naddy Exp $ .\" .\" Copyright (c) 1995 Serge V. Vakulenko .\" All rights reserved. @@ -29,7 +29,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: April 10 2009 $ +.Dd $Mdocdate: June 3 2009 $ .Dt CDIO 1 .Os .Sh NAME @@ -88,7 +88,7 @@ is assumed. .Bl -tag -width Ds .It Ic blank Minimally blank the disc. -.It Ic cddb Op Ar n +.It Ic cddbinfo Op Ar n Print the Table Of Contents (TOC) after matching the disc with the CDDB. In case of multiple matches, reissue the command with .Ar n . @@ -143,18 +143,23 @@ If we're at the last track, stop. .It Ic pause Stop playing. Do not stop the disc. -.It Ic play Ar first_track Op Ar last_track +.It Xo Ic play +.Oo Ar track1 Ns Op Ar .index1 Oc +.Ar track2 Ns Op Ar .index2 +.Xc Play from track -.Ar first_track +.Ar track1 to track -.Ar last_track . +.Ar track2 . +An index point can be specified for each track. The first track has number 1 and may be omitted in all cases. .It Xo Ic play .Op Ar tr1 -.Ar m1 : Ns Ar s1 Ns Op .f1 +.Ar m1 : Ns Ar s1 Ns Oo +.Ar .f1 Oc .Op Ar tr2 .Oo Ar m2 : Ns Ar s2 Ns -.Op .f2 Oc +.Op Ar .f2 Oc .Xc Play from the absolute address (MSF) defined by @@ -178,12 +183,13 @@ are relative to the start of that track. Minutes are in the range 0\(en99. Seconds are in the range 0\(en59. Frame numbers are in the range 0\(en74. -.It Ic play Op Ar #start_block Op Ar length +.It Ic play Op Ar #block Op Ar len Play starting from the logical block -.Ar start_block +.Ar block using -.Ar length +.Ar len logical blocks. +If no block is specified, play the whole disc. .It Ic previous Play the previous track. If we're at the first track, restart. diff --git a/usr.bin/cdio/cdio.c b/usr.bin/cdio/cdio.c index e239f5c9b14..124371f3056 100644 --- a/usr.bin/cdio/cdio.c +++ b/usr.bin/cdio/cdio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cdio.c,v 1.69 2009/02/07 20:21:13 naddy Exp $ */ +/* $OpenBSD: cdio.c,v 1.70 2009/06/03 00:45:59 naddy Exp $ */ /* Copyright (c) 1995 Serge V. Vakulenko * All rights reserved. @@ -114,33 +114,34 @@ struct cmdtab { int min; char *args; } cmdtab[] = { +{ CMD_BLANK, "blank", 1, "" }, +{ CMD_CDDB, "cddbinfo", 2, "[n]" }, +{ CMD_CDID, "cdid", 3, "" }, +{ CMD_CDPLAY, "cdplay", 3, "[track1-trackN ...]" }, +{ CMD_CDRIP, "cdrip", 3, "[track1-trackN ...]" }, { CMD_CLOSE, "close", 1, "" }, { CMD_DEBUG, "debug", 3, "on | off" }, { CMD_DEVICE, "device", 1, "devname" }, { CMD_EJECT, "eject", 1, "" }, +{ CMD_QUIT, "exit", 2, "" }, { CMD_HELP, "?", 1, 0 }, { CMD_HELP, "help", 1, "" }, { CMD_INFO, "info", 1, "" }, { CMD_NEXT, "next", 1, "" }, { CMD_PAUSE, "pause", 2, "" }, -{ CMD_PLAY, "play", 1, "track1[.index1] [track2[.index2]]" }, +{ CMD_PLAY, "play", 1, "[track1[.index1]] track2[.index2]" }, { CMD_PLAY, "play", 1, "[tr1] m1:s1[.f1] [tr2] [m2:s2[.f2]]" }, { CMD_PLAY, "play", 1, "[#block [len]]" }, { CMD_PREV, "previous", 2, "" }, { CMD_QUIT, "quit", 1, "" }, +{ CMD_REPLAY, "replay", 3, "" }, { CMD_RESET, "reset", 4, "" }, { CMD_RESUME, "resume", 1, "" }, -{ CMD_REPLAY, "replay", 3, "" }, -{ CMD_SET, "set", 2, "msf | lba" }, +{ CMD_SET, "set", 2, "lba | msf" }, { CMD_STATUS, "status", 1, "" }, { CMD_STOP, "stop", 3, "" }, -{ CMD_VOLUME, "volume", 1, "<l> <r> | left | right | mute | mono | stereo" }, -{ CMD_CDDB, "cddbinfo", 2, "[n]" }, -{ CMD_CDID, "cdid", 3, "" }, -{ CMD_QUIT, "exit", 2, "" }, -{ CMD_BLANK, "blank", 1, "" }, -{ CMD_CDRIP, "cdrip", 3, "[[track1-trackN] ...]" }, -{ CMD_CDPLAY, "cdplay", 3, "[[track1-trackN] ...]" }, +{ CMD_VOLUME, "volume", 1, "left_channel right_channel" }, +{ CMD_VOLUME, "volume", 1, "left | right | mono | stereo | mute" }, { 0, 0, 0, 0} }; |