Completions: Add suggestions for option `version`
@@ -72,9 +72,16 @@ function __fish_kdb_add_option -d 'Add suggestions for a certain option to multi
complete -c kdb -n "$completion_function" -l $opt_long -s $opt_short -d "$description"
end
+# ===========
+# = Options =
+# ===========
+
function __fish_kdb_subcommand_option_verbose -d 'Check if the current subcommand supports the option verbose'
not __fish_kdb_subcommand_includes export file getmeta global-mount gmount info mount qt-gui remount rm sget shell test vset help qt-gui
end
+
+function __fish_kdb_subcommand_option_version -d 'Check if the current subcommand supports the option version'
+ not __fish_kdb_subcommand_includes help qt-gui
end
# -- Completions ---------------------------------------------------------------------------------------------------------------------------
@@ -91,3 +98,4 @@ complete -c kdb -n '__fish_kdb_needs_namespace' -x -a '(__fish_kdb_print_namespa
# ===========
__fish_kdb_add_option '__fish_kdb_subcommand_option_verbose' 'verbose' 'v' 'Explain what is happening'
+__fish_kdb_add_option '__fish_kdb_subcommand_option_version' 'version' 'V' 'Print version info'
