chiark / gitweb /
vol_id: fix logging glue
[elogind.git] / extras / collect / collect.c
index 14184a5e058977361d9927afce60005e8517d806..7ebe865b62c7e5864c60cc4df5b2700e0a10d375 100644 (file)
@@ -321,10 +321,10 @@ static void everybody(void)
 int main(int argc, char **argv)
 {
        static const struct option options[] = {
-               { "add", 0, NULL, 'a' },
-               { "remove", 0, NULL, 'r' },
-               { "debug", 0, NULL, 'd' },
-               { "help", 0, NULL, 'h' },
+               { "add", no_argument, NULL, 'a' },
+               { "remove", no_argument, NULL, 'r' },
+               { "debug", no_argument, NULL, 'd' },
+               { "help", no_argument, NULL, 'h' },
                {}
        };
        int argi;