install: --compress argument is not optional

Fixes crash if argument is not specified. Also use `|' to separate choices
in list of compression methods to align it with --core-compress.
This commit is contained in:
Andrei Borzenkov 2015-10-11 21:17:37 +03:00
parent cfabe05cc6
commit 76197d9be6

View file

@ -39,7 +39,7 @@
{ "locales", GRUB_INSTALL_OPTIONS_INSTALL_LOCALES, N_("LOCALES"),\
0, N_("install only LOCALES [default=all]"), 1 }, \
{ "compress", GRUB_INSTALL_OPTIONS_INSTALL_COMPRESS, \
"no,xz,gz,lzo", OPTION_ARG_OPTIONAL, \
"no|xz|gz|lzo", 0, \
N_("compress GRUB files [optional]"), 1 }, \
{"core-compress", GRUB_INSTALL_OPTIONS_INSTALL_CORE_COMPRESS, \
"xz|none|auto", \