__fish_print_help: handle [ and :

This commit is contained in:
Johannes Altmanninger 2020-07-12 00:02:11 +02:00
parent c2fe319af0
commit 1f8c9a5d42

View file

@ -1,6 +1,11 @@
function __fish_print_help --description "Print help message for the specified fish function or builtin" --argument item error_message
if test "$item" = '.'
set item source
switch $item
case .
set item source
case :
set item true
case '['
set item test
end
# Do nothing if the file does not exist