[lxc-devel] [lxd/master] lxc/config: Add -e shorthand
stgraber on Github
lxc-bot at linuxcontainers.org
Mon May 25 16:10:13 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200525/337f50e8/attachment.bin>
-------------- next part --------------
From dc8d26b5d5303b0b699e903a986fa97cd32a3bfa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Mon, 25 May 2020 12:09:47 -0400
Subject: [PATCH] lxc/config: Add -e shorthand
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
lxc/config.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lxc/config.go b/lxc/config.go
index 559a557482..94bb3abe57 100644
--- a/lxc/config.go
+++ b/lxc/config.go
@@ -360,7 +360,7 @@ func (c *cmdConfigGet) Command() *cobra.Command {
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
`Get values for instance or server configuration keys`))
- cmd.Flags().BoolVar(&c.flagExpanded, "expanded", false, i18n.G("Access the expanded configuration"))
+ cmd.Flags().BoolVarP(&c.flagExpanded, "expanded", "e", false, i18n.G("Access the expanded configuration"))
cmd.Flags().StringVar(&c.config.flagTarget, "target", "", i18n.G("Cluster member name")+"``")
cmd.RunE = c.Run
@@ -610,7 +610,7 @@ func (c *cmdConfigShow) Command() *cobra.Command {
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
`Show instance or server configurations`))
- cmd.Flags().BoolVar(&c.flagExpanded, "expanded", false, i18n.G("Show the expanded configuration"))
+ cmd.Flags().BoolVarP(&c.flagExpanded, "expanded", "e", false, i18n.G("Show the expanded configuration"))
cmd.Flags().StringVar(&c.config.flagTarget, "target", "", i18n.G("Cluster member name")+"``")
cmd.RunE = c.Run
More information about the lxc-devel
mailing list