]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: sort the options alphabetically
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 28 Sep 2021 18:08:05 +0000 (20:08 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 29 Sep 2021 10:52:57 +0000 (12:52 +0200)
src/udev/udevadm-info.c

index 1ea89c16cc50cc95b0494aa5442e35cb3beac55e..85f826690ca88c627e26af80916ad972b0e2e879 100644 (file)
@@ -366,19 +366,19 @@ int info_main(int argc, char *argv[], void *userdata) {
         int c, r;
 
         static const struct option options[] = {
-                { "name",                    required_argument, NULL, 'n' },
-                { "path",                    required_argument, NULL, 'p' },
-                { "query",                   required_argument, NULL, 'q' },
                 { "attribute-walk",          no_argument,       NULL, 'a' },
                 { "cleanup-db",              no_argument,       NULL, 'c' },
-                { "export-db",               no_argument,       NULL, 'e' },
-                { "root",                    no_argument,       NULL, 'r' },
                 { "device-id-of-file",       required_argument, NULL, 'd' },
                 { "export",                  no_argument,       NULL, 'x' },
+                { "export-db",               no_argument,       NULL, 'e' },
                 { "export-prefix",           required_argument, NULL, 'P' },
-                { "wait-for-initialization", optional_argument, NULL, 'w' },
-                { "version",                 no_argument,       NULL, 'V' },
                 { "help",                    no_argument,       NULL, 'h' },
+                { "name",                    required_argument, NULL, 'n' },
+                { "path",                    required_argument, NULL, 'p' },
+                { "query",                   required_argument, NULL, 'q' },
+                { "root",                    no_argument,       NULL, 'r' },
+                { "version",                 no_argument,       NULL, 'V' },
+                { "wait-for-initialization", optional_argument, NULL, 'w' },
                 {}
         };