fixed name of argument for sorting
diff --git a/examples/user_supplied_main/main.cpp b/examples/user_supplied_main/main.cpp
index 8354952..51a46ee 100644
--- a/examples/user_supplied_main/main.cpp
+++ b/examples/user_supplied_main/main.cpp
@@ -4,12 +4,14 @@
int program();
int main(int argc, char** argv) {
- doctest::Context context; // initialize
+ doctest::Context context;
+
+ // !!! THIS IS JUST AN EXAMPLE SHOWING HOW DEFAULTS/OVERRIDES ARE SET !!!
// defaults
context.addFilter("test-case-exclude", "*math*"); // exclude test cases with "math" in the name
- 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("order_by", "name"); // sort the test cases by their name
context.applyCommandLine(argc, argv);