summaryrefslogtreecommitdiff
path: root/src/hello/hello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hello/hello.cpp')
-rw-r--r--src/hello/hello.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/hello/hello.cpp b/src/hello/hello.cpp
new file mode 100644
index 0000000..0c9df99
--- /dev/null
+++ b/src/hello/hello.cpp
@@ -0,0 +1,11 @@
+#include <iostream>
+
+#include <fmt/format.h>
+#include <string>
+
+int main(int argc, char **argv) {
+ std::cout << fmt::format("Hello {}!",
+ argc > 1 ? std::string{argv[1]} : "World")
+ << std::endl;
+ return 0;
+}