Set parentOnly flag based on input