From b12c324e2e8892a50b51336febb664c9c441b37c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 6 Jun 2005 04:54:02 +0000 Subject: nicer error --- perl-install/standalone/bootloader-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/bootloader-config b/perl-install/standalone/bootloader-config index 42bf12fa5..e167a5e54 100755 --- a/perl-install/standalone/bootloader-config +++ b/perl-install/standalone/bootloader-config @@ -26,7 +26,7 @@ my %options = ( 'no-initrd' => \ (my $no_initrd), ); -GetOptions(%options) or die <<'EOF'; +GetOptions(%options) && $action or die <<'EOF'; usage: bootloader-config --action add-kernel (--image | --kernel-version <2.6.xxx>) [--label <...>] [--no-short-name] [--initrd-options ] bootloader-config --action remove-kernel (--image | --kernel-version <2.6.xxx>) -- cgit v1.2.1