api-doc.sh: Raise error if command line argument is missing

A tiny correction to api-doc.sh.