mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2026-01-03 21:02:48 +00:00
The _tc_one_of_list and _tc_once_attr functions simplfy the bash completion task by validating each attr exist only once on the command line. For example, for the command line: $ a b c d e and the call to _tc_once_attr with "a f g", the function will suggest "f g" as "a" existed in the command line in args 0. Add the _from variant to those functions, which allows having the command line option once from a specified index. In the previous example, calling _tc_once_attr with 4 and "a f g" will suggest "a f g". Signed-off-by: Yotam Gigi <yotamg@mellanox.com> |
||
|---|---|---|
| .. | ||
| tc | ||