def def_cmd(name=None, short=None, fn=None, usage=None, help=None):
    """
    Define a command.
    """
    command = Command(name=name, short=short, fn=fn, usage=usage, help=help)
    Command.register(command)