From 030695f7a6834d0e32d960e37a164b8f757e7cef Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Mon, 6 Feb 2023 10:37:22 -0800 Subject: renamed usage to help --- doc/snake3.man | 2 +- snake.c | 4 ++-- 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; } } -- cgit v1.3.1