The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6147
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 4ca7b2b0035ae77849a438a36c84b2d0f8628d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Tue, 3 Sep 2019 09:55:51 -0400 Subject: [PATCH] lxc/init: Fix usage with no args MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxc/init.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lxc/init.go b/lxc/init.go index 9472e68e95..d3022b141f 100644 --- a/lxc/init.go +++ b/lxc/init.go @@ -58,6 +58,11 @@ func (c *cmdInit) Run(cmd *cobra.Command, args []string) error { return err } + if len(args) == 0 && !c.flagEmpty { + cmd.Usage() + return nil + } + _, _, err = c.create(c.global.conf, args) return err }
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel