mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
Join options for autocomplete
This commit is contained in:
parent
81a7e701f9
commit
44391125c2
1 changed files with 5 additions and 1 deletions
|
@ -187,7 +187,11 @@ func (s *Session) setupReadline() error {
|
|||
tree[name] = []string{}
|
||||
}
|
||||
|
||||
tree[name] = append(tree[name], parts[1:]...)
|
||||
var appendedOption = strings.Join(parts[1:], " ")
|
||||
|
||||
if len(appendedOption) > 0 {
|
||||
tree[name] = append(tree[name], appendedOption)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue