add parse_pathspec() that converts cmdline args to struct pathspec