The bash script new-post.sh shows how to do bash scripting with a required argument and some optional flags.