Add version command.

This commit is contained in:
Nicolás A. Ortega Froysa 2022-10-29 14:24:36 +02:00
parent 44d7def8d4
commit d3713b6bad

View File

@ -24,6 +24,7 @@ ISIDORE_CONFIG_DIR_OPTIONS=(
ISIDORE_AUTHOR_NAME="" ISIDORE_AUTHOR_NAME=""
PROG_NAME=$0 PROG_NAME=$0
PROJECT_NAME="Isidore"
## ##
# Create the configuration file. This function is called if it does not already # Create the configuration file. This function is called if it does not already
@ -153,6 +154,8 @@ case $1 in
clean_project;; clean_project;;
help) help)
print_help;; print_help;;
version)
echo "$PROJECT_NAME v$ISIDORE_VERSION";;
*) *)
echo "Unknown command $1. Use the 'help' command." echo "Unknown command $1. Use the 'help' command."
print_usage;; print_usage;;