Support dir arg.