Add help optarg

This commit is contained in:
Maciej Ziaja 2020-02-22 09:09:07 +01:00
parent 31c19d98b8
commit 241d0d7812
1 changed files with 23 additions and 0 deletions

23
ssb Normal file → Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
function usage
{
echo \
"Usage: $0 [-h|-d|-g] [-e HEADER_PATH] [-f FOOTER_PATH]" \
"[-c CSS_PATH] [-o OUTPUT_DIR] [-p POSTS_DIR]"
exit 0
}
function parse_optargs
{
while getopts "h" opt; do
case $opt in
h)
usage;;
esac
done
}
parse_optargs $@