Perhaps a decorator that detects when the syntax of a command is incorrect and outputs the corresponding docstring for the function?