Files
openwrt/package/utils
Felix Fietkau 3ae669b656 cli: use the defaults for available in the parameter name list
complete_named_params() computes the defaults and then calls the
available callback with the given parameters alone. A parameter that
is available only through a default of another parameter is missing
from the name list, in both spellings, while the command accepts it.

Show the callback the same view as the command does, with a given value
ahead of the default. Reuse the defaults that default_complete() holds.
A parameter with a default stays in the name list until it is given.

No available callback in the tree reads a default yet. Found by
inspection.

Fixes: 248b66b44f ("cli: add OpenWrt CLI")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2026-11-15 11:17:20 +00:00
..
2024-10-03 17:27:50 +02:00
2023-10-09 23:42:37 +02:00
2026-02-17 22:25:05 +01:00
2026-04-27 10:50:53 +02:00
2024-11-17 12:30:16 +01:00
2026-06-27 16:24:14 +02:00
2026-01-02 18:07:02 +01:00
2024-02-17 01:55:21 +01:00
2025-11-18 23:13:46 +01:00
2026-02-17 22:25:09 +01:00
2026-04-27 10:50:54 +02:00
2026-06-24 02:14:33 +02:00