diff --git a/docs b/docs index 89233bd2..1bc87fa5 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 89233bd239fb56b45ea33b489bfb5dc213ddabb2 +Subproject commit 1bc87fa57cb6b108624c93d6396129d3e6d0fe0a diff --git a/platformio/project/commands/init.py b/platformio/project/commands/init.py index 09215e40..098c31a5 100644 --- a/platformio/project/commands/init.py +++ b/platformio/project/commands/init.py @@ -127,14 +127,14 @@ def project_init_cmd( def print_header(project_dir): - click.echo("The next files/directories have been created in ", nl=False) + click.echo("The following files/directories have been created in ", nl=False) try: click.secho(project_dir, fg="cyan") except UnicodeEncodeError: click.secho(json.dumps(project_dir), fg="cyan") click.echo("%s - Put project header files here" % click.style("include", fg="cyan")) click.echo( - "%s - Put here project specific (private) libraries" + "%s - Put project specific (private) libraries here" % click.style("lib", fg="cyan") ) click.echo("%s - Put project source files here" % click.style("src", fg="cyan")) @@ -355,6 +355,8 @@ def update_project_env(environment, extra_project_options=None): "platformio.ini", parse_extra=False, expand_interpolations=False ) for section, options in option_to_sections.items(): + if not options: + continue if not config.has_section(section): config.add_section(section) for name, value in options: