Files
snapd/tests/completion/funcarg.vars
John R. Lenton f15432a737 data/completion: pass documented arguments to completion functions
completion functions (and commands, which we treat the same way) are
documented as receiving three arguments. I hadn't noticed, as almost
nobody uses them because most everything you need is in the different
COMP_ variables, but python's argcomplete module uses it.

This fixes that, and adds a spread test just in case.
2018-11-12 15:55:19 +00:00

8 lines
89 B
Bash

# -*- sh -*-
_OUT0="too tree won"
_KEY1="w"
_OUT1="won"
_KEY2="t"
_OUT2="too tree"