bin/image_optim in image_optim-0.15.0 vs bin/image_optim in image_optim-0.16.0
- old
+ new
@@ -21,12 +21,27 @@
| #{ImageOptim::Config::GLOBAL_CONFIG_PATH}
| #{ImageOptim::Config::LOCAL_CONFIG_PATH}
|
TEXT
- op.on('-r', '-R', '--recursive', 'Recurively scan directories '\
+ op.on('-r', '-R', '--recursive', 'Recursively scan directories '\
'for images') do |recursive|
options[:recursive] = recursive
+ end
+
+ op.on("--exclude-dir 'GLOB'", 'Glob for excluding directories '\
+ '(defaults to .*)') do |glob|
+ options[:exclude_dir_glob] = glob
+ end
+
+ op.on("--exclude-file 'GLOB'", 'Glob for excluding files '\
+ '(defaults to .*)') do |glob|
+ options[:exclude_file_glob] = glob
+ end
+
+ op.on("--exclude 'GLOB'", 'Set glob for excluding both directories and '\
+ 'files') do |glob|
+ options[:exclude_file_glob] = options[:exclude_dir_glob] = glob
end
op.separator nil
op.on('--[no-]threads N', Integer, 'Number of threads or disable '\