From 57950592364e3e983c7574c706f43be0c7164af1 Mon Sep 17 00:00:00 2001 From: kevinnls <57634663+kevinnls@users.noreply.github.com> Date: Thu, 8 Apr 2021 02:15:47 +0530 Subject: [PATCH] add: `-h` option to print usage - usage prompt not implemented yet - placeholder prompt is printed --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index fe49a1a..85e5160 100644 --- a/src/main.c +++ b/src/main.c @@ -46,6 +46,9 @@ int parse(const int index){ if(param[0] == '-') { //printf("it's an option\n"); switch(param [1]){ + case 'h': + print_usage(); + exit(0); case 'o': output = argv[index+1]; ++_return_value;