summaryrefslogtreecommitdiff
path: root/snake.c
diff options
context:
space:
mode:
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