Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for passing in filenames that contain commas #50

Merged
merged 1 commit into from
Sep 19, 2016

Conversation

aliceatlas
Copy link
Contributor

The versions of clap supported by oxipng seems to default to allowing commas to be used as delimiters 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, none of which tend to exist). Fixed this by disabling the comma delimiter behavior for the 'files' argument.

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.
@shssoichiro
Copy link
Owner

Thanks for the bug fix! Looks good, I'll go ahead and merge.

@shssoichiro shssoichiro merged commit 645baf6 into shssoichiro:master Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants