Permalink
Browse files

fix parenthesis with len and error color

  • Loading branch information...
1 parent 4f52490 commit f1311e7b8b2a958f1b640b1c7c24515bfdf230ce @razzius razzius committed Feb 24, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/appscale
View
@@ -80,7 +80,7 @@ elif command == "status":
sys.exit(1)
elif command == "deploy":
try:
- if len(sys.argv != 3):
+ if len(sys.argv) != 3:
cprint("Usage: appscale deploy <path to your app>", 'red')
sys.exit(1)
@@ -90,8 +90,8 @@ elif command == "deploy":
sys.exit(1)
elif command == "undeploy" or command == "remove":
try:
- if len(sys.argv != 3):
- cprint("Usage: appscale {0} <path to your app>".format(command))
+ if len(sys.argv) != 3:
+ cprint("Usage: appscale {0} <path to your app>".format(command), 'red')
sys.exit(1)
appscale.undeploy(sys.argv[2])

0 comments on commit f1311e7

Please sign in to comment.