unall support for --dir option