fix #3 negative durations should be after -- by using getopt and the test.