cloning opts before parsing them to the dock