fixed #17
diff --git a/examples/multi_file_example/main.cpp b/examples/multi_file_example/main.cpp
index 2dfb08d..c78bf90 100644
--- a/examples/multi_file_example/main.cpp
+++ b/examples/multi_file_example/main.cpp
@@ -2,13 +2,17 @@
#include "doctest.h"
int main(int argc, char** argv) {
- doctest::Context context(argc, argv); // initialize
+ doctest::Context context; // initialize
+
+ // defaults
+ context.addFilter("test-case-exclude", "*math*"); // exclude test cases with "math" in their name
+ context.setOption("no-breaks", true); // don't break in the debugger when assertions fail
+
+ context.applyCommandLine(argc, argv);
// overrides
- context.addFilter("test-case-exclude", "*math*"); // exclude test cases with "math" in their name
- context.setOption("no-breaks", true); // don't break in the debugger when assertions fail
- context.setOption("abort-after", 5); // stop test execution after 5 failed assertions
- context.setOption("sort", "name"); // sort the test cases by their name
+ context.setOption("abort-after", 5); // stop test execution after 5 failed assertions
+ context.setOption("sort", "name"); // sort the test cases by their name
int res = context.run(); // run