fixed #17
diff --git a/examples/disabled/main.cpp b/examples/disabled/main.cpp
index 45bd18b..139ff3d 100644
--- a/examples/disabled/main.cpp
+++ b/examples/disabled/main.cpp
@@ -4,13 +4,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 the 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 the 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