guetzli icon indicating copy to clipboard operation
guetzli copied to clipboard

add version flag

Open romainmenke opened this issue 7 years ago • 3 comments

Added a version flag to the cli.

Currently prints : Guetzli 1.0.1

#130

romainmenke avatar Apr 06 '17 17:04 romainmenke

@romainmenke Maybe another/better solution is to create a header file dynamicly on the built process to read the version and maybe add the commit hash from another file, like other/popular tools do it, sothat its not required to edit the guetzli.cc on every version change

gtuk avatar Apr 06 '17 19:04 gtuk

@gtuk c++ is not my strong suit, thought I would get the ball rolling by adding the flag to the cli already. Do you have a reference for the method you describe?

romainmenke avatar Apr 06 '17 19:04 romainmenke

@romainmenke i had something like this http://stackoverflow.com/a/1843783 or this http://m.linuxjournal.com/content/add-auto-incrementing-build-number-your-build-process in mind. Maybe its a good first reference. Let me know if i can help you

gtuk avatar Apr 06 '17 19:04 gtuk