summaryrefslogtreecommitdiffstats
path: root/usr.sbin/burncd
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2000-01-15 15:51:47 +0000
committersos <sos@FreeBSD.org>2000-01-15 15:51:47 +0000
commitaf9edb227a865f4f9eecfc2e05862878f56bb548 (patch)
tree2d76c4a94afc8546d021920f99d83fdeccbc4478 /usr.sbin/burncd
parent4b174b1c2f07e56b47ef7f0109b35954b58016ce (diff)
downloadFreeBSD-src-af9edb227a865f4f9eecfc2e05862878f56bb548.zip
FreeBSD-src-af9edb227a865f4f9eecfc2e05862878f56bb548.tar.gz
Enable the 't' option, and document it in the manpage.
Submitted by: green@freebsd.org <Brian Fundakowski Feldman>
Diffstat (limited to 'usr.sbin/burncd')
-rw-r--r--usr.sbin/burncd/burncd.82
-rw-r--r--usr.sbin/burncd/burncd.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/burncd/burncd.8 b/usr.sbin/burncd/burncd.8
index e560ab4..a2cc12b 100644
--- a/usr.sbin/burncd/burncd.8
+++ b/usr.sbin/burncd/burncd.8
@@ -60,6 +60,8 @@ eject the CD-R/RW when done.
use preemphasis on audio tracks.
.It Fl q
quiet, dont print progress messages.
+.It Fl t
+test write, dont actually wirte on the media.
.El
.Pp
.Ar command
diff --git a/usr.sbin/burncd/burncd.c b/usr.sbin/burncd/burncd.c
index 3761a57..6b32301 100644
--- a/usr.sbin/burncd/burncd.c
+++ b/usr.sbin/burncd/burncd.c
@@ -54,7 +54,7 @@ main(int argc, char **argv)
int block_size, cdopen = 0, size, tot_size = 0;
struct cdr_track track;
- while ((ch = getopt(argc, argv, "ef:pqs:")) != -1) {
+ while ((ch = getopt(argc, argv, "ef:pqs:t")) != -1) {
switch (ch) {
case 'e':
eject = 1;
@@ -81,6 +81,7 @@ main(int argc, char **argv)
break;
default:
+ exit(EX_USAGE);
}
}
argc -= optind;
OpenPOWER on IntegriCloud