Add primitive command line support, resolves #4