catchorg / catchorg/Catch2

remove recognized command line options and continue

Open
#1,865 1 comment 1 reaction 0 assignees View on GitHub
Feature Request
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

Gtest's `::testingInitGoogleTest(&argc, argv)` function parses the command line args for googletest flags and removes the recognized ones. Then it continues. This gives me a chance to process my own command line arguments in my library under test.

Can catch2 do something similar? I could hack around this by feeding catch2 a false set of args, but that seems unfortunate when this approach would work much more seamlessly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.