_lttng_cmd_list() {
local list_opts
- disable_channel_opts=$(lttng list --list-options)
+ list_opts=$(lttng list --list-options)
case $prev in
--channel|-c)
esac
}
+_lttng_cmd_view() {
+ local view_opts
+ view_opts=$(lttng view --list-options)
+
+ case $cur in
+ -*)
+ COMPREPLY=( $(compgen -W "${view_opts}" -- $cur) )
+ ;;
+ esac
+}
+
_lttng_opts() {
local opts
opts=$(lttng --list-options)