From: Armaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me> Date: Sun, 18 Oct 2020 12:44:43 +0000 (-0400) Subject: added versioning X-Git-Url: https://git.armaanb.net/?p=charsel.git;a=commitdiff_plain;h=8144e0931937918fff0f19a432741d849342ebf2 added versioning --- diff --git a/charsel b/charsel index c274ef8..6c6fc91 100755 --- a/charsel +++ b/charsel @@ -19,6 +19,8 @@ ######################################################################## +VERSION=2.0.0 + # Define argument functions function usage() { echo "Usage: /usr/bin/charsel [OPTION]... [CHARFILE]... @@ -26,6 +28,7 @@ A simple terminal character selector -h show this message -l show installed charfiles -d show readme + -v print version --all include hidden shortcodes Exit status: @@ -86,7 +89,7 @@ then fi # Look for arguments -while getopts ":lhd" arg +while getopts ":lhdv" arg do case ${arg} in h) @@ -101,6 +104,10 @@ do readme exit 0 ;; + v) + echo "charsel" $VERSION + exit 0 + ;; ?) echo "Invalid option" usage