summaryrefslogtreecommitdiff
path: root/udev/udevadm-info.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-02 16:49:05 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-02 16:49:05 +0200
commit033e9f8cde5a7feec1334888aec69def99c945b5 (patch)
treecdffede0d38c9fa8d80b93608d5c6e423547610a /udev/udevadm-info.c
parent842dacb76f2f98537554683d7cccec4710779a8a (diff)
use no_argument, required_argument, optional_argument in longopts
Diffstat (limited to 'udev/udevadm-info.c')
-rw-r--r--udev/udevadm-info.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c
index 4da9881dbe..ec098abd18 100644
--- a/udev/udevadm-info.c
+++ b/udev/udevadm-info.c
@@ -217,17 +217,17 @@ int udevadm_info(struct udev *udev, int argc, char *argv[])
int rc = 0;
static const struct option options[] = {
- { "name", 1, NULL, 'n' },
- { "path", 1, NULL, 'p' },
- { "query", 1, NULL, 'q' },
- { "attribute-walk", 0, NULL, 'a' },
- { "export-db", 0, NULL, 'e' },
- { "root", 0, NULL, 'r' },
- { "device-id-of-file", 1, NULL, 'd' },
- { "export", 0, NULL, 'x' },
- { "export-prefix", 1, NULL, 'P' },
- { "version", 0, NULL, 1 }, /* -V outputs braindead format */
- { "help", 0, NULL, 'h' },
+ { "name", required_argument, NULL, 'n' },
+ { "path", required_argument, NULL, 'p' },
+ { "query", required_argument, NULL, 'q' },
+ { "attribute-walk", no_argument, NULL, 'a' },
+ { "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-prefix", required_argument, NULL, 'P' },
+ { "version", no_argument, NULL, 1 }, /* -V outputs braindead format */
+ { "help", no_argument, NULL, 'h' },
{}
};