add src direcroty operation
fix crash issue of resolving parameter by getopt