def _create_djset(args, cls):
    """ Return a DjSecret object """
    name = args.get('--name')
    settings = args.get('--settings')
    if name:
        return cls(name=name)
    elif settings:
        return cls(name=settings)
    else:
        return cls()