aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ponymix.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ponymix.cc b/ponymix.cc
index 1bf0384..05fbf89 100644
--- a/ponymix.cc
+++ b/ponymix.cc
@@ -468,6 +468,9 @@ static const std::pair<const string, const Command>& string_to_command(
}
static void version() {
+ execlp("ponysay", "ponysay", "-b", "", "ponymix " PONYMIX_VERSION, NULL);
+
+ // Some people are pony haters.
fputs("ponymix v" PONYMIX_VERSION "\n", stdout);
exit(EXIT_SUCCESS);
}