Skip to content

Commit 924d077

Browse files
committed
Don't allow includes inside options.
1 parent 44a7505 commit 924d077

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/flags.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ static bool setFallbackFlag(
6464
"option '{}' has an option inside it, which isn't "
6565
"allowed",
6666
path);
67+
if (configs.config().include_size() > 0)
68+
Error() << fmt::format(
69+
"option '{}' is trying to include something, which "
70+
"isn't allowed",
71+
path);
6772

6873
Logger() << fmt::format("OPTION: {}", configs.message());
6974
config.MergeFrom(configs.config());

0 commit comments

Comments
 (0)