bpierre / fontello-svg

Generate SVG icons from a Fontello icon set.
MIT License
66 stars 7 forks source link

Filename setting/formatting #7

Closed mikemellor11 closed 8 years ago

mikemellor11 commented 8 years ago

Hey, i needed to remove the -black from the filenames when they get saved - e.g.

fontawesome-search-black.svg to fontawesome-search.svg

I've added in a flag to allow the setting of the format which allows complete customization but also defaults to what it currently was.

You set with --file-format {0}-{1}-{2}.svg

Where {0} is the collection {1} is the name {2} is the color

So now i can rewrite my format as {0}-{1}.svg which removes the color.

This pull request also has the previous feature aswell which adds the folder if it doesn't already exist.

bpierre commented 8 years ago

Cool, thanks! Sorry about the other pull request, I just realize now that I never merged it.