The dir param is -dir not --dir