fixing commandline option passing, fixes #7

@clementfarabet review and merge.