Using --functions-only along with --table=<name> does not error out and warn the user, instead it creates a dump containing only the SET commands. An error similar to using --functions-only along with --data-only seems like a good idea.
Thank you for giving my patch a try.
I added the new if statement, so that the program will error should the `--functions-only` be used alongside the `--table` option.