the problem is that you don't increment i before looking for -s change the line
else if(strcmp("-s", argv[i]) == 0){ //i is still zero, so argv[i] is the command entered
to
else if(strcmp("-s", argv[++i]) == 0){
(add ++ before the i) and it won't print usage.