From 04f246ea9d7a76e05b6402afa14e52f23e28dc41 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 6 May 2015 11:28:56 +0100 Subject: [PATCH] Remove "autogen_" prefix from default env --- docs/userguide/cmd_init.rst | 7 ++++--- platformio/commands/init.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/userguide/cmd_init.rst b/docs/userguide/cmd_init.rst index 637cdafd..fa0d8e43 100644 --- a/docs/userguide/cmd_init.rst +++ b/docs/userguide/cmd_init.rst @@ -57,9 +57,10 @@ allows you to disable firmware auto-uploading by default. .. option:: --env-prefix -An environment prefix which will be used with pair in board type. The default -value is ``autogen_``. For example, the default environment name for -``teensy_31`` board will be ``[env:autogen_teensy_31]``. +An environment prefix which will be used with pair in board type. + +For example, the default environment name for ``teensy_31`` board will +be ``[env:teensy_31]``. Examples diff --git a/platformio/commands/init.py b/platformio/commands/init.py index 229a1c23..4799d5fc 100644 --- a/platformio/commands/init.py +++ b/platformio/commands/init.py @@ -32,7 +32,7 @@ def validate_boards(ctx, param, value): # pylint: disable=W0613 @click.option("--ide", type=click.Choice(ProjectGenerator.get_supported_ides())) @click.option("--disable-auto-uploading", is_flag=True) -@click.option("--env-prefix", default="autogen_") +@click.option("--env-prefix", default="") def cli(project_dir, board, ide, disable_auto_uploading, env_prefix): # ask about auto-uploading