chiark / gitweb /
manager: rework generator logic
[elogind.git] / src / cryptsetup / cryptsetup-generator.c
index 51706b7a860766c804fbefe8fbff283cc1f60a96..de64afd7274dc7f4d091c1bfc40f52a1d85e88d4 100644 (file)
@@ -240,8 +240,8 @@ int main(int argc, char *argv[]) {
         int r = EXIT_SUCCESS;
         unsigned n = 0;
 
-        if (argc > 2) {
-                log_error("This program takes one or no arguments.");
+        if (argc > 1 && argc != 4) {
+                log_error("This program takes three or no arguments.");
                 return EXIT_FAILURE;
         }