aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2017-10-17 01:33:01 +0300
committerDaniil Cherednik <dan.cherednik@gmail.com>2017-10-17 01:33:01 +0300
commit208a5c285d390eb82a31947dc85ef32a8b8f1e62 (patch)
tree9c9bbae9f6103454d78420ce416956e6ef445152 /src/main.cpp
parent43e508b0b607054d2a720e8d9c3a11947d6f798d (diff)
downloadatracdenc-208a5c285d390eb82a31947dc85ef32a8b8f1e62.tar.gz
Do not start encoding if unrecognized option given
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ee8f862..20a8963 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -100,7 +100,7 @@ enum EOptions
O_MONO = 'm',
O_NOSTDOUT = '4',
O_NOTONAL = 5,
- O_GAINCONTROL = 6,
+ O_NOGAINCONTROL = 6,
};
static void CheckInputFormat(const TWav* p)
@@ -213,7 +213,7 @@ int main(int argc, char* const* argv)
{ "notransient", optional_argument, NULL, O_NOTRANSIENT},
{ "nostdout", no_argument, NULL, O_NOSTDOUT},
{ "notonal", no_argument, NULL, O_NOTONAL},
- { "nogaincontrol", no_argument, NULL, O_GAINCONTROL},
+ { "nogaincontrol", no_argument, NULL, O_NOGAINCONTROL},
{ NULL, 0, NULL, 0}
};
@@ -280,11 +280,12 @@ int main(int argc, char* const* argv)
case O_NOTONAL:
noTonalComponents = true;
break;
- case O_GAINCONTROL:
+ case O_NOGAINCONTROL:
noGainControl = true;
break;
default:
printUsage(myName);
+ return 1;
}
}