support for loading patterns from command line