########################################################################
+VERSION=2.0.0
+
# Define argument functions
function usage() {
echo "Usage: /usr/bin/charsel [OPTION]... [CHARFILE]...
-h show this message
-l show installed charfiles
-d show readme
+ -v print version
--all include hidden shortcodes
Exit status:
fi
# Look for arguments
-while getopts ":lhd" arg
+while getopts ":lhdv" arg
do
case ${arg} in
h)
readme
exit 0
;;
+ v)
+ echo "charsel" $VERSION
+ exit 0
+ ;;
?)
echo "Invalid option"
usage