add: -h option to print usage

- usage prompt not implemented yet
- placeholder prompt is printed
This commit is contained in:
kevinnls
2021-04-08 02:15:47 +05:30
parent 78cf1cd54a
commit 5795059236

View File

@@ -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;