add option -h for help and -i for ignore pattern