forked from platformio/platformio-core
Correct warning about obsoleted commands
This commit is contained in:
@@ -40,8 +40,9 @@ class PlatformioCLI(click.MultiCommand): # pylint: disable=R0904
|
|||||||
def _handle_obsolate_command(self, name):
|
def _handle_obsolate_command(self, name):
|
||||||
if name in ("install", "list", "search", "show", "uninstall"):
|
if name in ("install", "list", "search", "show", "uninstall"):
|
||||||
click.secho(
|
click.secho(
|
||||||
"Warning! `platformio %s` command is obsoleted! Please use "
|
"Warning! `platformio %s` command is obsoleted and will be "
|
||||||
"`platformio platforms %s`" % (name, name),
|
"removed in the next release! Please use "
|
||||||
|
"`platformio platforms %s` instead." % (name, name),
|
||||||
fg="red"
|
fg="red"
|
||||||
)
|
)
|
||||||
from platformio.commands import platforms
|
from platformio.commands import platforms
|
||||||
|
Reference in New Issue
Block a user