working primitive command line parser with tests