dsw7 / GPTifier

A beautiful C++ libcurl / ChatGPT interface. I more or less work on this project for fun :)
MIT License
0 stars 1 forks source link

The `-v / --version` flag should provide additional build information #25

Closed dsw7 closed 9 months ago

dsw7 commented 9 months ago

Impetus

It would be nice to know when a particular binary was compiled, perhaps by the --version flag (or some other flag). Perhaps the data could be returned in JSON format:

$ gpt --version
{
  "version": "x.y.z",
  "build_date": <some-build-date>
}

We know that we can set a timestamp via cmake as follows:

string(TIMESTAMP RUN_TIME)
message(STATUS ${RUN_TIME})