diff --git a/.config/fish/functions/update.fish b/.config/fish/functions/update.fish index 317cd407..7669f5a3 100644 --- a/.config/fish/functions/update.fish +++ b/.config/fish/functions/update.fish @@ -1,7 +1,17 @@ function update --description "Update everything" # autoconfirm # or force no multiterm - argparse y/no-confirm o/one-term -- $argv + argparse h/help y/no-confirm o/one-term -- $argv + if set -ql _flag_h + printf '%s\n' \ + 'update -- update everything' \ + 'Usage: run `update` to begin' \ + 'Options:' \ + '-y/--no-confirm: Skip update confirmations' \ + '-o/--one-term: Force single terminal mode' \ + '-h/--help: Print this screen' + return 0 + end # TODO: add configuration options and publish? set -g termcmd foot fish -c set -l std 'cargo install-update -a