mirror of
https://github.com/kevinnlsamuel/stdouterr.git
synced 2025-12-06 09:55:58 +05:30
add: -h option to print usage
- usage prompt not implemented yet - placeholder prompt is printed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user