mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
made --version output consistent with AboutPage (#1739)
When using "chatterino --version" it now also outputs commit and date of build (if on nightly), just like in Settings -> About
This commit is contained in:
parent
5e0ac814cf
commit
c5f6fd7568
1 changed files with 7 additions and 1 deletions
|
@ -38,7 +38,13 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
else if (getArgs().printVersion)
|
else if (getArgs().printVersion)
|
||||||
{
|
{
|
||||||
qInfo().noquote() << Version::instance().fullVersion();
|
auto version = Version::instance();
|
||||||
|
qInfo().noquote() << QString("%1 (commit %2%3)")
|
||||||
|
.arg(version.fullVersion())
|
||||||
|
.arg(version.commitHash())
|
||||||
|
.arg(Modes::instance().isNightly
|
||||||
|
? ", " + version.dateOfBuild()
|
||||||
|
: "");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue