+########################################################################
+
+# Define argument functions
+function usage() {
+ echo "Usage: /usr/bin/charsel [OPTION]... [CHARFILE]...
+A simple terminal character selector
+ -h show this message
+ -l show installed charfiles
+ -d show readme
+ --all include hidden shortcodes
+
+Exit status:
+ 0 okay,
+ 1 invalid charfile
+ 2 usage error/invalid option"
+}
+
+CHARDIR=$HOME/.cache/charsel
+function list() {
+ echo "The following charfiles are installed:"
+ ls $CHARDIR/charfiles
+}
+
+function readme() {
+ cat /usr/share/doc/charsel/README.md
+}
+
+function invalid_charfile() {
+ echo "The selected charfile is missing or invalid"
+ list
+ exit 1
+}