You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ho...@apache.org on 2017/09/29 14:10:12 UTC

[incubator-openwhisk-wskdeploy] branch master updated: Silence Usage on error (#576)

This is an automated email from the ASF dual-hosted git repository.

houshengbo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-wskdeploy.git


The following commit(s) were added to refs/heads/master by this push:
     new 5954b1f  Silence Usage on error (#576)
5954b1f is described below

commit 5954b1f0236537efea1f4168d890b0429b6a21f6
Author: Priti Desai <pd...@us.ibm.com>
AuthorDate: Fri Sep 29 07:10:10 2017 -0700

    Silence Usage on error (#576)
---
 cmd/root.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmd/root.go b/cmd/root.go
index 07c2697..400f6f8 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -49,6 +49,8 @@ wskdeploy without any commands or flags deploys openwhisk package in the current
 }
 
 func RootCmdImp(cmd *cobra.Command, args []string) error {
+	cmd.SilenceErrors = true
+	cmd.SilenceUsage = true
 	return Deploy()
 }
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].