[lxc-devel] [lxd/master] Change lxc help to to go to stdout

stgraber on Github lxc-bot at linuxcontainers.org
Tue Aug 30 17:02:28 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 377 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160830/ae66d6bc/attachment.bin>
-------------- next part --------------
From 36ce9f96cdd6c0d93e80bd764ef66ee10c4e508f Mon Sep 17 00:00:00 2001
From: Carlos <cneirabustos at gmail.com>
Date: Thu, 25 Aug 2016 16:04:35 -0300
Subject: [PATCH] Change lxc help to to go to stdout

Closes #2301
Closes #2317

Signed-off-by: Carlos <cneirabustos at gmail.com>
---
 lxc/help.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxc/help.go b/lxc/help.go
index 678e218..b01732a 100644
--- a/lxc/help.go
+++ b/lxc/help.go
@@ -39,7 +39,7 @@ func (c *helpCmd) run(_ *lxd.Config, args []string) error {
 			if !ok {
 				fmt.Fprintf(os.Stderr, i18n.G("error: unknown command: %s")+"\n", name)
 			} else {
-				fmt.Fprintf(os.Stderr, cmd.usage()+"\n")
+				fmt.Fprintf(os.Stdout, cmd.usage()+"\n")
 			}
 		}
 		return nil


More information about the lxc-devel mailing list