memex command line parsing