fix required flag completion

If there is a required flag the __completion command is never executed.