Skip to content

Conversation

@chrissimpkins
Copy link
Contributor

@chrissimpkins chrissimpkins commented Mar 22, 2018

I needed to be able to check the woff2_compress version from the executable.

This PR adds help (--help and -h), usage (--usage), and version (--version and -v) command line options to the woff2_compress and woff2_decompress executables with very minimal command line documentation.

Adds two new header files that contain the string literals. There is likely be a better approach to implement the version strings during the build process. Happy to modify to whatever approach is appropriate/better if there is any interest in supporting these command line options.

Current text:

woff2_compress
Copyright 2013 Google Inc.
MIT License

Include a single *.ttf or *.otf font file path argument to compile to a *.woff2 font file.

Usage: woff2_compress [font file path]
woff2_decompress
Copyright 2013 Google Inc.
MIT License

Include a single *.woff2 font file path argument to decode to a *.ttf font.

Usage: woff2_decompress [font file path]
Usage: woff2_compress [font file path]
Usage: woff2_decompress [font file path]
woff2_decompress v1.0.3
woff2_compress v1.0.3

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.

1 participant