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:
parent
4977dd0948
commit
7460ffac73
1 changed files with 1 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue