🚧 Setting up for -h/--help flag
This commit is contained in:
parent
7ee4d748e3
commit
edfd65f973
2 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
5
scripts/bgit_help
Normal file
5
scripts/bgit_help
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
function b_help() {
|
||||
echo "${txtgreen}help message will go here${txtwhite}"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue