From 9ebf816d03072173e447855c7b934daaa3685692 Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Sat, 28 May 2016 10:22:06 +0800 Subject: [PATCH] Fix help message for memory-swap Back quotes are the placeholder feature described here: https://github.com/urfave/cli#placeholder-values Without this, cli will take `-1` as default value as: ``` --memory-swap -1 Total memory usage (memory + swap); set `-1` to enable unlimited swap ``` After this patch, it'll act correctly ``` --memory-swap value Total memory usage (memory + swap); set '-1' to enable unlimited swap ``` Signed-off-by: Qiang Huang --- update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.go b/update.go index 6f746ca9f..058211f0e 100644 --- a/update.go +++ b/update.go @@ -95,7 +95,7 @@ other options are ignored. }, cli.StringFlag{ Name: "memory-swap", - Usage: "Total memory usage (memory + swap); set `-1` to enable unlimited swap", + Usage: "Total memory usage (memory + swap); set '-1' to enable unlimited swap", }, }, Action: func(context *cli.Context) error {