1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +00:00

LibCore: Make --version print same version as in LibGUI's About dialogs

Making every binary's behavior depend on the current git hash seems a
bit questionable to me, but we should be self-consistent about this.
This commit is contained in:
Nico Weber 2021-08-14 18:50:52 -04:00 committed by Andreas Kling
parent faa2c74b49
commit f25be94487
2 changed files with 17 additions and 1 deletions

View file

@ -58,6 +58,7 @@ public:
void set_general_help(const char* help_string) { m_general_help = help_string; };
void set_stop_on_first_non_option(bool stop_on_first_non_option) { m_stop_on_first_non_option = stop_on_first_non_option; }
void print_usage(FILE*, const char* argv0);
void print_version(FILE*);
void add_option(Option&&);
void add_option(bool& value, const char* help_string, const char* long_name, char short_name);