From aa78cb58ea2e6114753b74479fe58792b0d38f8e Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Mon, 6 Feb 2023 10:34:27 -0800 Subject: add usage --- snake.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'snake.c') diff --git a/snake.c b/snake.c index 9a88d26..cae7bb3 100644 --- a/snake.c +++ b/snake.c @@ -32,6 +32,9 @@ 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"); + return 0; } } //get terminal size -- cgit v1.3.1