なんの工夫もなくif でやる。

if (strcmp(argv[i], "-h") == 0) {
...
}
else if (strcmp(argv[i], "-o") == 0) {
...
}
...
else {
..
}