Running check completion before error checking allows for completion of flags when no character has been typed yet