added comment for functions and main

This commit is contained in:
NRK
2021-04-12 21:25:33 +06:00
parent cdccca3499
commit cb10f9e1ea

10
sxbm
View File

@ -27,6 +27,11 @@ ENCRYPTION="0"
# Auto fetch title. 1 to enable, 0 to disable
TITLE_FETCH="1"
#################
### functions ###
#################
die(){
[ -z "$1" ] ||
printf "$@\n" > /dev/stderr
@ -46,6 +51,11 @@ COMMANDS:
-v|--version print the version and exit\n\n"
}
############
### main ###
############
[ -z "$1" ] && usage && die
case "$1" in