add --pkg argument to cmi (#348)

@wjwwood consider for merging