make command line args mutually exclusive
This commit is contained in:
parent
4e82a7343d
commit
dba90f5c15
1 changed files with 5 additions and 0 deletions
5
main.c
5
main.c
|
@ -134,6 +134,11 @@ int main(int argc, const char **argv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (flags != FLAG_REVERSE && flags != FLAG_CZECH && flags != FLAG_ENCODE) {
|
||||||
|
error("options '-r', '-e' and '-c' are mutually exclusive.");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (flags & FLAG_STDIN) {
|
if (flags & FLAG_STDIN) {
|
||||||
input = stdin_read();
|
input = stdin_read();
|
||||||
if (input == NULL) {
|
if (input == NULL) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue