Correct warning about obsoleted commands

This commit is contained in:
Ivan Kravets
2015-04-24 15:51:08 +01:00
parent 36ad6efa25
commit 97d229232d

View File

@ -40,8 +40,9 @@ class PlatformioCLI(click.MultiCommand): # pylint: disable=R0904
def _handle_obsolate_command(self, name):
if name in ("install", "list", "search", "show", "uninstall"):
click.secho(
"Warning! `platformio %s` command is obsoleted! Please use "
"`platformio platforms %s`" % (name, name),
"Warning! `platformio %s` command is obsoleted and will be "
"removed in the next release! Please use "
"`platformio platforms %s` instead." % (name, name),
fg="red"
)
from platformio.commands import platforms