From 7460ffac7329ee905a79863d758ff5ce02996a6c Mon Sep 17 00:00:00 2001 From: Alice Atlas Date: Mon, 19 Sep 2016 18:13:24 -0400 Subject: [PATCH] Fix for passing in filenames that contain commas The versions of clap supported by oxipng default to allowing commas to be used as a delimiter for passing a series of values in a single physical command line argument, when parsing for a parameter that accepts multiple values. This prevents oxipng from accepting filenames containing commas (it splits them into segments separated by commas and treats each one as a separate path to a file to process, generally not finding any); this patch fixes this by disabling the delimiter behavior for the 'files' argument. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 2c47c279..40a45dd6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,6 +29,7 @@ fn main() { .help("File(s) to compress") .index(1) .multiple(true) + .use_delimiter(false) .required(true)) .arg(Arg::with_name("optimization") .help("Optimization level - Default: 2")