diff --git a/platformio/commands/lib.py b/platformio/commands/lib.py index ddb4c7e7..051720c6 100644 --- a/platformio/commands/lib.py +++ b/platformio/commands/lib.py @@ -33,8 +33,7 @@ from platformio.util import get_api_result "-g", "--global", is_flag=True, - help="Manage global PlatformIO" - " library storage `%s`" % join(util.get_home_dir(), "lib")) + help="Manage global PlatformIO library storage") @click.option( "-d", "--storage-dir", diff --git a/platformio/exception.py b/platformio/exception.py index b38e91da..4a1bdc66 100644 --- a/platformio/exception.py +++ b/platformio/exception.py @@ -226,7 +226,8 @@ class UpgradeError(PlatformioException): class HomeDirPermissionsError(PlatformioException): MESSAGE = "You do not have permissions to PlatformIO home directory.\n"\ - "Please remove `{0}` folder manually and repeat operation." + "Please remove `{0}` folder manually and avoid using " + "`sudo pio ...`." class CygwinEnvDetected(PlatformioException):