Do not warn about "custom_" options in configuration file

This commit is contained in:
Ivan Kravets
2017-09-13 17:38:42 +03:00
parent b4159f9144
commit 7963ce2cdd

View File

@ -227,7 +227,7 @@ class EnvironmentProcessor(object):
v = self.RENAMED_PLATFORMS[v]
# warn about unknown options
if k not in self.KNOWN_OPTIONS:
if k not in self.KNOWN_OPTIONS and not k.startswith("custom_"):
click.secho(
"Detected non-PlatformIO `%s` option in `[env:%s]` section"
% (k, self.name),