summaryrefslogtreecommitdiff
path: root/snake.c
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-02-06 10:34:27 -0800
committerPreston Pan <preston@nullring.xyz>2023-02-06 10:34:27 -0800
commitaa78cb58ea2e6114753b74479fe58792b0d38f8e (patch)
tree4f17e0f46426198a72f8f63ab6198c90db26691a /snake.c
parente9f782018030fbd5d1884e75efe73881000a3818 (diff)
add usage
Diffstat (limited to 'snake.c')
-rw-r--r--snake.c3
1 files changed, 3 insertions, 0 deletions
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