mirror of
https://github.com/tkuschel/bees.git
synced 2025-11-17 14:59:14 +01:00
ADD the common convention to display the active version of the bees/beesd program
This commit is contained in:
@@ -39,6 +39,10 @@ help(){
|
||||
exec "$bees_bin" --help
|
||||
}
|
||||
|
||||
version(){
|
||||
exec "$bees_bin" --version
|
||||
}
|
||||
|
||||
for i in $("$bees_bin" --help 2>&1 | grep -E " --" | sed -e "s/^[^-]*-/-/" -e "s/,[^-]*--/ --/" -e "s/ [^-]*$//")
|
||||
do
|
||||
TMP_ARGS="$TMP_ARGS $i"
|
||||
@@ -66,6 +70,8 @@ for arg in "${ARGUMENTS[@]}"; do
|
||||
case $arg in
|
||||
-h) help;;
|
||||
--help) help;;
|
||||
-V) version;;
|
||||
--version) version;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user