summaryrefslogtreecommitdiffstats
path: root/src/CLI/CLI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/CLI/CLI.cpp')
-rw-r--r--src/CLI/CLI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CLI/CLI.cpp b/src/CLI/CLI.cpp
index b082115c..d882161a 100644
--- a/src/CLI/CLI.cpp
+++ b/src/CLI/CLI.cpp
@@ -210,7 +210,7 @@ int main(int argc, char** argv)
longopts, &option_index);
#define SET_OP(newop) \
- if (op != -1) \
+ if (op != -1 && op != newop) \
{ \
error_msg(_("You must specify exactly one operation.")); \
return 1; \