From 0bf7e68ea55a9f2aadf033e091cfe3034527c4ac Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 24 Apr 2015 15:37:08 +0100 Subject: [PATCH] Require minimum 1 argument for the "uninstall" command --- platformio/commands/platforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/commands/platforms.py b/platformio/commands/platforms.py index 54a4721d..bdfae393 100644 --- a/platformio/commands/platforms.py +++ b/platformio/commands/platforms.py @@ -131,7 +131,7 @@ def platforms_show(ctx, platform): @cli.command("uninstall", short_help="Uninstall platforms") -@click.argument("platforms", nargs=-1) +@click.argument("platforms", nargs=-1, required=True) def platforms_uninstall(platforms): for platform in platforms: