Command-line access to the :func:`dftphotom` algorithm.

    This function implements the behavior of the command-line ``casatask
    dftphotom`` tool, wrapped up into a single callable function. The argument
    *argv* is a list of command-line arguments, in Unix style where the zeroth
    item is the name of the command.

def dftphotom_cli(argv):
    """Command-line access to the :func:`dftphotom` algorithm.

    This function implements the behavior of the command-line ``casatask
    dftphotom`` tool, wrapped up into a single callable function. The argument
    *argv* is a list of command-line arguments, in Unix style where the zeroth
    item is the name of the command.

    """
    check_usage(dftphotom_doc, argv, usageifnoargs=True)
    cfg = Config().parse(argv[1:])
    util.logger(cfg.loglevel)
    dftphotom(cfg)