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.
This commit is contained in:
Alice Atlas 2016-09-19 18:13:24 -04:00
parent 4977dd0948
commit 7460ffac73

View file

@ -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")