issue #291 allow api host to be set if nothing else was set yet.
diff --git a/tools/cli/wsk b/tools/cli/wsk
index 9a136c3..75a35eb 100755
--- a/tools/cli/wsk
+++ b/tools/cli/wsk
@@ -66,7 +66,7 @@
if (args.verbose):
print props
- if apihost is None and (args.cmd != 'property' or args.cmd == 'property' and args.subcmd != 'get'):
+ if apihost is None and (args.cmd != 'property' or args.cmd == 'property' and args.subcmd != 'set'):
print 'error: API host is not set. Set it with "wsk property set --apihost <host>".'
return 2