add option no-save-failed-tasks
option help texts
use optparse print version