From a81f1c609ebbe6439628bc308d590285ccd66169 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Mon, 16 May 2016 17:20:29 -0400 Subject: [PATCH] Update usage and help to (almost) match the existing docker behaviour Signed-off-by: Daniel Nephin Upstream-commit: 17b3d05419453a83e9f84911214888bd3c99ba5a Component: cli --- components/cli/opts/opts.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/cli/opts/opts.go b/components/cli/opts/opts.go index 05d5497161..e1d3c2db15 100644 --- a/components/cli/opts/opts.go +++ b/components/cli/opts/opts.go @@ -100,6 +100,11 @@ func (opts *ListOpts) Len() int { return len((*opts.values)) } +// Type returns a string name for this Option type +func (opts *ListOpts) Type() string { + return "list" +} + // NamedOption is an interface that list and map options // with names implement. type NamedOption interface {