mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-29 21:55:25 +03:00
udevadm: info - unify -V and --version
This commit is contained in:
parent
95d61c2745
commit
50025605e0
1
TODO
1
TODO
@ -7,5 +7,4 @@
|
||||
the default rules
|
||||
o "udevadm control" commands will only accept the --<command> syntax
|
||||
o symlink names to udevadm will no longer be resolved to old command names
|
||||
o fix "udevadm info -V" format
|
||||
o get distros to agree on a default set of rules
|
||||
|
@ -228,7 +228,7 @@ int udevadm_info(struct udev *udev, int argc, char *argv[])
|
||||
{ "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 */
|
||||
{ "version", no_argument, NULL, 'V' },
|
||||
{ "help", no_argument, NULL, 'h' },
|
||||
{}
|
||||
};
|
||||
@ -366,11 +366,8 @@ int udevadm_info(struct udev *udev, int argc, char *argv[])
|
||||
case 'P':
|
||||
export_prefix = optarg;
|
||||
break;
|
||||
case 1:
|
||||
printf("%s\n", VERSION);
|
||||
goto exit;
|
||||
case 'V':
|
||||
printf("udevinfo, version %s\n", VERSION);
|
||||
printf("%s\n", VERSION);
|
||||
goto exit;
|
||||
case 'h':
|
||||
printf("Usage: udevadm info OPTIONS\n"
|
||||
|
Loading…
Reference in New Issue
Block a user