Fix logic of optparse argument no-prompt.