summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-02-06 10:37:22 -0800
committerPreston Pan <preston@nullring.xyz>2023-02-06 10:37:22 -0800
commit030695f7a6834d0e32d960e37a164b8f757e7cef (patch)
tree564f0a8457f7c0f5f6134c8bd4a1eb0f1640e46b
parent84a5294a55de3ba31cc3c564494c8b5fd61d4732 (diff)
renamed usage to help
-rw-r--r--doc/snake3.man2
-rw-r--r--snake.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/snake3.man b/doc/snake3.man
index 462fc57..1cd8446 100644
--- a/doc/snake3.man
+++ b/doc/snake3.man
@@ -15,7 +15,7 @@ keys to navigate.
\fB--version\fP
\-\- Displays version info, and license information.
-\fB--usage\fP
+\fB--help\fP
\-\- Displays the usage information for the snake3 program.
.SH AUTHORS
diff --git a/snake.c b/snake.c
index cae7bb3..fd37da5 100644
--- a/snake.c
+++ b/snake.c
@@ -32,8 +32,8 @@ int main(int argc, char **argv) {
printf("This software was licensed under the MIT license;\n");
printf("for more information, see the license file.\n");
return 0;
- } else if (strcmp("--usage", argv[i]) == 0) {
- printf("usage: snake3 [--version] [--usage]\n");
+ } else if (strcmp("--help", argv[i]) == 0) {
+ printf("usage: snake3 [--version] [--help]\n");
return 0;
}
}