Open pjueon opened 2 years ago
@hzeller Could you check this please?
Not sure if the added complexity is worth for a --version
option of a project that is likely to not really change much.
@hzeller Sorry for the late response.
For example, let's say you want to implement txtempus on the devices like arduino.
And you may not be able to use a keyboard and have to use other input devices (like buttons or something).
In this scenario, I think it's a good idea to encapsulate the I/O logic and separate it from the main function.
It would be easier to edit the I/O part of the program.
But if you don't agree with me, I can revert the I/O part and minimize the change. Let me know your opinion. Thanks.
--version
option to the txtempus.Usage:
Output:
Added hard-coded version info for now, but is possible to generate the
version.h
on build using the version info in theCMakeLists.txt
in the future.Created
UserInput
class. It handles all the user input now.