Fixed the issue with -v displaying wrong cause of the lack of break;
This commit is contained in:
8
main.c
8
main.c
@@ -15,9 +15,11 @@ int main(int argc, char** argv){
|
||||
printf("Usage :\nfirst parameter is the name of the program to be killed. it'll then ask you which one that matches do you want to kill\n");
|
||||
break;
|
||||
case 'v':
|
||||
printf("v0.0\n");
|
||||
default:
|
||||
printf("Unknown option : -%c\n",argv[1][1]);
|
||||
printf("v0.1\n");
|
||||
break;
|
||||
default:
|
||||
printf("Unknown option : -%c\n",argv[1][1]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
||||
Reference in New Issue
Block a user