From 22aec8f754bab0b0bcb907490c932d3e073325b7 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 20 Feb 2013 01:53:02 +0100 Subject: [PATCH] setup: add "status" to help text --- src/setup/setup.c | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/src/setup/setup.c b/src/setup/setup.c index ef4c865..7d23422 100644 --- a/src/setup/setup.c +++ b/src/setup/setup.c @@ -51,23 +51,6 @@ static inline const char *strna(const char *s) { return isempty(s) ? "n/a" : s; } -static int help(void) { - printf("%s [COMMAND] [OPTIONS...]\n" - "\n" - "Install, update or remove the Gummiboot EFI boot loader.\n\n" - " -h --help Show this help\n" - " --path=PATH Path to the EFI System Partition (ESP)\n" - " --no-variables Don't touch EFI variables\n" - "\n" - "Comands:\n" - " install Install Gummiboot to the ESP and EFI variables\n" - " update Update Gummiboot in the ESP and EFI variables\n" - " remove Remove Gummiboot from the ESP and EFI variables\n", - program_invocation_short_name); - - return 0; -} - static int uuid_parse(const char *s, uint8_t uuid[16]) { int u[16]; int i; @@ -1257,6 +1240,24 @@ static int install_loader_config(const char *esp_path) { return 0; } +static int help(void) { + printf("%s [COMMAND] [OPTIONS...]\n" + "\n" + "Install, update or remove the Gummiboot EFI boot loader.\n\n" + " -h --help Show this help\n" + " --path=PATH Path to the EFI System Partition (ESP)\n" + " --no-variables Don't touch EFI variables\n" + "\n" + "Comands:\n" + " status Show status of installed Gummiboot and EFI variables\n" + " install Install Gummiboot to the ESP and EFI variables\n" + " update Update Gummiboot in the ESP and EFI variables\n" + " remove Remove Gummiboot from the ESP and EFI variables\n", + program_invocation_short_name); + + return 0; +} + static const char *arg_path = NULL; static bool arg_touch_variables = true; -- 2.7.4