Skip to content

Commit ae63253

Browse files
committed
DPL: do not forward defaulted options
Actually aligns with the comment
1 parent 1120c99 commit ae63253

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Framework/Core/src/DeviceSpecHelpers.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ void DeviceSpecHelpers::prepareArguments(bool defaultQuiet, bool defaultStopped,
16001600
// find the option belonging to key, add if the option has been parsed
16011601
// and is not defaulted
16021602
const auto* description = odesc.find_nothrow(varit.first, false);
1603-
if (description && varmap.count(varit.first)) {
1603+
if (description && varmap.count(varit.first) && !varit.second.defaulted()) {
16041604
// check the semantics of the value
16051605
auto semantic = description->semantic();
16061606
const char* optarg = "";

0 commit comments

Comments
 (0)