90c7584089
Reword manpage to be more general (you do not only eject CD-ROM-drives, but BluRay-drives, floppy drives, LaserDisk-readers, toaster, whatever). Allow to specify multiple devices in the command line. Doesn't add LOC (the few more lines added are due to stricter error-checking) and might become handy for somebody in the future while not breaking scripts that assume only one argument. Crying like GNU coreutils when more than one device is given is not suckless: $ eject /dev/sr0 /dev/sr1 eject: too many arguments
26 lines
327 B
Groff
26 lines
327 B
Groff
.Dd September 9, 2015
|
|
.Dt EJECT 1
|
|
.Os ubase
|
|
.Sh NAME
|
|
.Nm eject
|
|
.Nd control device trays
|
|
.Sh SYNOPSIS
|
|
.Nm
|
|
.Op Fl t
|
|
.Op Ar device ...
|
|
.Sh DESCRIPTION
|
|
.Nm
|
|
opens the tray of each
|
|
.Ar device .
|
|
If no
|
|
.Ar device
|
|
is given
|
|
.Nm
|
|
opens the tray of
|
|
.Pa /dev/sr0 .
|
|
.Sh OPTIONS
|
|
.Bl -tag -width Ds
|
|
.It Fl t
|
|
Close instead of open the tray.
|
|
.El
|