aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Perl <m@thp.io>2022-05-03 21:58:36 +0200
committerDaniil Cherednik <dan.cherednik@gmail.com>2022-05-04 17:01:20 +0300
commit03eac5e0aab558aeba465c886fce57c37f6f0c53 (patch)
tree6d90a070950c0874a9806650e45cd15407448ac5 /src
parent7c13fe5d6f50d4403d19326c088cbff8743955da (diff)
downloadatracdenc-03eac5e0aab558aeba465c886fce57c37f6f0c53.tar.gz
Complain loudly about unhandled arguments
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e7492a9..de087d2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -337,6 +337,11 @@ int main_(int argc, char* const* argv)
argc -= optind;
argv += optind;
+ if (argc != 0) {
+ cerr << "Unhandled arg: " << argv[0] << endl;
+ return 1;
+ }
+
if (inFile.empty()) {
cerr << "No input file" << endl;
return 1;