add command line option, duration, help and version