aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2023-12-05 10:56:38 +0100
committervimene <vincent.menegaux@gmail.com>2023-12-05 10:56:38 +0100
commit19c3e2b83c3c8b58576050b448f2f35d0687e717 (patch)
treea49b4a99b261830fc85daaa96473ff617ad9bdcb
parent9b70ca7b3a1b7bfd3bf434d8b84bde42f5572ca0 (diff)
downloadengine-19c3e2b83c3c8b58576050b448f2f35d0687e717.tar.gz
fixed missing `help' option in usage
-rw-r--r--README.md2
-rw-r--r--src/engine.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index f4889cb..7aef019 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ You can run tests:
### Running
- Usage: ./engine [-tg] [--term] [--graphical]
+ Usage: ./engine [-htg] [--help] [--term] [--graphical]
-h, --help show usage (this)
-t, --term terminal mode
-g, --graphical graphical mode (default)
diff --git a/src/engine.cpp b/src/engine.cpp
index 91c0b80..adfe43a 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -40,7 +40,7 @@
#define MODE_GRAPHICAL 2
static void print_usage(std::ostream& output_stream) {
- output_stream << "Usage: ./engine [-tg] [--term] [--graphical]\n"
+ output_stream << "Usage: ./engine [-htg] [--help] [--term] [--graphical]\n"
<< " -h, --help show usage (this)\n"
<< " -t, --term terminal mode\n"
<< " -g, --graphical graphical mode (default)\n"