Looks like the cli argument isn't used in this function, can be deleted?