Support arguments all directory

If no deep option, not deep search.
Extract common line