eject --version (return code: 0)
eject version 2.1.5 by Jeff Tranter (tranter@pobox.com)
eject -HELP (return code: 1)
Eject version 2.1.5 by Jeff Tranter (tranter@pobox.com)
Usage:
eject -h -- display command usage and exit
eject -V -- display program version and exit
eject [-vnrsfqpm] [<name>] -- eject device
eject [-vn] -d -- display default device
eject [-vn] -a on|off|1|0 [<name>] -- turn auto-eject feature on or off
eject [-vn] -c <slot> [<name>] -- switch discs on a CD-ROM changer
eject [-vn] -t [<name>] -- close tray
eject [-vn] -T [<name>] -- toggle tray
eject [-vn] -i on|off|1|0 [<name>] -- toggle manual eject protection on/off
eject [-vn] -x <speed> [<name>] -- set CD-ROM max speed
eject [-vn] -X [<name>] -- list CD-ROM available speeds
Options:
-v -- enable verbose output
-n -- don't eject, just show device found
-r -- eject CD-ROM
-s -- eject SCSI device
-f -- eject floppy
-q -- eject tape
-p -- use /proc/mounts instead of /etc/mtab
-m -- do not unmount device even if it is mounted
Long options:
-h --help -v --verbose -d --default
-a --auto -c --changerslot -t --trayclose -x --cdspeed
-r --cdrom -s --scsi -f --floppy -X --listspeed -q --tape
-n --noop -V --version
-p --proc -m --no-unmount -T --traytoggle
Parameter <name> can be a device file or a mount point.
If omitted, name defaults to `cdrom'.
By default tries -r, -s, -f, and -q in order until success.