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

api-doc.sh expects a command line argument that it passes to `cat`.

If no command line argument is specified, `cat` hangs the execution
waiting for standard input, while the user of the script may think that
documentation is being generated.