aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-04-09 22:18:32 -0400
committerB. Watson <urchlay@slackware.uk>2024-04-11 16:52:48 -0400
commit370c0d47318dbc46bda88c7a6c9a3e30429b9cef (patch)
tree1c4d09d00176642da03432e7ebb6e67715f83ac7
parent5ad141d40e2be8aed8fb3cbc673a224071823372 (diff)
downloadsoxdial-370c0d47318dbc46bda88c7a6c9a3e30429b9cef.tar.gz
soxdial: rearrange some warnings.
-rwxr-xr-xsoxdial8
1 files changed, 4 insertions, 4 deletions
diff --git a/soxdial b/soxdial
index 9c8659e..345738a 100755
--- a/soxdial
+++ b/soxdial
@@ -525,12 +525,12 @@ for ($argc = 0; $argc < @ARGV; $argc++) {
die "$SELF: can't change bitrate after a dial string.\n";
}
$rate = parse_rate($ARGV[++$argc]);
- warn "$SELF: bitrate set to '$rate'\n" if $verbose;
die "$SELF: invalid bitrate.\n" unless $rate > 0;
+ warn "$SELF: bitrate set to '$rate'\n" if $verbose;
} elsif(/^--?l(?:ength)?$/) {
$digittime = parse_sec($ARGV[++$argc]);
- warn "$SELF: digit length set to '$digittime'\n" if $verbose;
die "$SELF: invalid --length argument.\n" unless $digittime > 0;
+ warn "$SELF: digit length set to '$digittime'\n" if $verbose;
} elsif(/^--?(?:x|extended)$/) {
$extended = 1;
warn "$SELF: extended DTMF (ABCD) enabled.\n" if $verbose;
@@ -539,12 +539,12 @@ for ($argc = 0; $argc < @ARGV; $argc++) {
warn "$SELF: extended DTMF (ABCD) disabled.\n" if $verbose;
} elsif(/^--?d(?:elay)?$/) {
$intertime = parse_sec($ARGV[++$argc]);
- warn "$SELF: inter-digit delay set to '$intertime'\n" if $verbose;
die "$SELF: invalid --delay argument.\n" unless $intertime > 0;
+ warn "$SELF: inter-digit delay set to '$intertime'\n" if $verbose;
} elsif(/^--?c(?:omma)?$/) {
$pausetime = parse_sec($ARGV[++$argc]);
- warn "$SELF: comma delay set to '$pausetime'\n" if $verbose;
die "$SELF: invalid --comma argument.\n" unless $pausetime > 0;
+ warn "$SELF: comma delay set to '$pausetime'\n" if $verbose;
} elsif(/^--?(?:D|dialtone-type)$/) {
set_dialtone_type($ARGV[++$argc]);
} elsif(/^--?(?:t|dialtone)$/) {