This is an automated email from the ASF dual-hosted git repository. rohit pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cloudstack-cloudmonkey.git
The following commit(s) were added to refs/heads/master by this push: new c1185a5 cli: in case of no possible arg values, return empty string c1185a5 is described below commit c1185a511d60c80b445ade4d863dddf476dfe683 Author: Rohit Yadav <ro...@apache.org> AuthorDate: Mon Dec 31 18:37:41 2018 +0530 cli: in case of no possible arg values, return empty string Signed-off-by: Rohit Yadav <ro...@apache.org> --- cli/completer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/completer.go b/cli/completer.go index 8a161fa..3c7c5b9 100644 --- a/cli/completer.go +++ b/cli/completer.go @@ -352,6 +352,9 @@ func (t *autoCompleter) Do(line []rune, pos int) (options [][]rune, offset int) } } offset = 0 + if len(filteredOptions) == 0 { + options = [][]rune{[]rune("")} + } for _, item := range filteredOptions { option := item.Value + " " if len(filteredOptions) > 1 && len(item.Detail) > 0 {