🚧 Setting up for -h/--help flag

This commit is contained in:
z3rOR0ne 2022-09-09 00:38:29 -07:00
parent 7ee4d748e3
commit edfd65f973
2 changed files with 9 additions and 0 deletions

View file

@ -171,6 +171,10 @@ function bgit() {
elif [[ $numrepos -ge 1 && $numargs -eq 1 && $1 == "-r" ]] ; then
source $HOME/.config/bgit/bgit_revert
b_revert "$@"
elif [[ $numargs -eq 1 && $1 == "-h" || $1 == "--help" ]] ; then
source $HOME/.config/bgit/bgit_help
b_help "$@"
fi
}