Skip to content

Commit 34831ec

Browse files
committed
Add error message for unknown option
1 parent 66bdd6f commit 34831ec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/core/commandLineOptions.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ void process_clasp_arguments(CommandLineOptions* options) {
405405
} else if (*arg == "-S" || *arg == "--seed") {
406406
options->_RandomNumberSeed = atoi((*++arg).c_str());
407407
} else {
408-
// Unknown option.
408+
fmt::print(std::cerr, "{}: unrecognized option '{}'\n", gctools::program_name(), *arg);
409+
exit(1);
409410
}
410411
}
411412

src/koga/ninja.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
:description "Running pfdietz test-random-integer-forms"
168168
:pool "console")
169169
(ninja:write-rule output-stream :link-fasl
170-
:command "$clasp --norc --type image --disable-mpi --ignore-image --feature clasp-min --load link-fasl.lisp -- $out $in"
170+
:command "$clasp --norc --disable-mpi --ignore-image --feature clasp-min --load link-fasl.lisp -- $out $in"
171171
:restat 1
172172
:description "Linking $target")
173173
(ninja:write-rule output-stream "link-fasl-abc"

0 commit comments

Comments
 (0)