How to check for an argument in a script in Bash.

<pre lang="bash">
if [ -z "$1" ] ; then
  echo "there are no arguments"
else
  echo "there is an argument"
fi