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

Add help, usage, and version options for woff2_compress + woff2_decompress #111

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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.

None yet

1 participant