add --format to edit command