Add version flag
This commit is contained in:
parent
5afddf1a8a
commit
bee57f10ad
@ -63,14 +63,14 @@ while [[ $# -gt 0 ]]; do
|
||||
printf "$green service $2 restarted successfully $reset \n"
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
printf "$red invalid option specifieid, see 'esv --help' $reset \n"
|
||||
exit 1
|
||||
;;
|
||||
-v|--version)
|
||||
printf "$blue esv v1.0.0 $reset \n"
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
printf "$red invalid option specifieid, see 'esv --help' $reset \n"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user