diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-05-19 11:55:36 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-05-19 11:55:36 +0200 |
commit | fba4e9450602092c58f8676c454f8e534f4e50f6 (patch) | |
tree | e70d4f339fa0eb7520d7768144ba32daf03eb450 /src/boot | |
parent | 405b104df6978f1d3bed6c12c6cee93a215883bf (diff) | |
download | systemd-fba4e9450602092c58f8676c454f8e534f4e50f6.tar.gz systemd-fba4e9450602092c58f8676c454f8e534f4e50f6.tar.bz2 systemd-fba4e9450602092c58f8676c454f8e534f4e50f6.zip |
bootctl: add -x shortcut for --print-boot-path
It's a quite useful option, let's match -p.
Diffstat (limited to 'src/boot')
-rw-r--r-- | src/boot/bootctl.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 57908641a0..c3ebdd7c4e 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -997,7 +997,7 @@ static int help(int argc, char *argv[], void *userdata) { " --esp-path=PATH Path to the EFI System Partition (ESP)\n" " --boot-path=PATH Path to the $BOOT partition\n" " -p --print-esp-path Print path to the EFI System Partition\n" - " --print-boot-path Print path to the $BOOT partition\n" + " -x --print-boot-path Print path to the $BOOT partition\n" " --no-variables Don't touch EFI variables\n" " --no-pager Do not pipe output into a pager\n" "\nBoot Loader Commands:\n" @@ -1020,7 +1020,6 @@ static int parse_argv(int argc, char *argv[]) { enum { ARG_ESP_PATH = 0x100, ARG_BOOT_PATH, - ARG_PRINT_BOOT_PATH, ARG_VERSION, ARG_NO_VARIABLES, ARG_NO_PAGER, @@ -1034,7 +1033,7 @@ static int parse_argv(int argc, char *argv[]) { { "boot-path", required_argument, NULL, ARG_BOOT_PATH }, { "print-esp-path", no_argument, NULL, 'p' }, { "print-path", no_argument, NULL, 'p' }, /* Compatibility alias */ - { "print-boot-path", no_argument, NULL, ARG_PRINT_BOOT_PATH }, + { "print-boot-path", no_argument, NULL, 'x' }, { "no-variables", no_argument, NULL, ARG_NO_VARIABLES }, { "no-pager", no_argument, NULL, ARG_NO_PAGER }, {} @@ -1045,7 +1044,7 @@ static int parse_argv(int argc, char *argv[]) { assert(argc >= 0); assert(argv); - while ((c = getopt_long(argc, argv, "hp", options, NULL)) >= 0) + while ((c = getopt_long(argc, argv, "hpx", options, NULL)) >= 0) switch (c) { case 'h': @@ -1071,7 +1070,7 @@ static int parse_argv(int argc, char *argv[]) { arg_print_esp_path = true; break; - case ARG_PRINT_BOOT_PATH: + case 'x': arg_print_dollar_boot_path = true; break; |