Fixed the issue with -v displaying wrong cause of the lack of break;
This commit is contained in:
4
main.c
4
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");
|
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;
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
printf("v0.0\n");
|
printf("v0.1\n");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
printf("Unknown option : -%c\n",argv[1][1]);
|
printf("Unknown option : -%c\n",argv[1][1]);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
Reference in New Issue
Block a user