diff --git a/ChangeLog b/ChangeLog index cf1623f36..66d243f45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-03-05 Vladimir Serbinenko + + * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options + without argument. + * util/grub-mount.c (options): Likewise. + 2012-03-05 Vladimir Serbinenko * util/grub-mkimage.c (generate_image): Unify diskboot.img size message. diff --git a/util/grub-fstest.c b/util/grub-fstest.c index 1ce41ee8b..24e508f67 100644 --- a/util/grub-fstest.c +++ b/util/grub-fstest.c @@ -452,12 +452,12 @@ static struct argp_option options[] = { {"length", 'n', "N", 0, N_("Handle N bytes in output file."), 2}, {"diskcount", 'c', "N", 0, N_("Specify the number of input files."), 2}, {"debug", 'd', "S", 0, N_("Set debug environment variable."), 2}, - {"crypto", 'C', NULL, OPTION_ARG_OPTIONAL, N_("Mount crypto devices."), 2}, + {"crypto", 'C', NULL, 0, N_("Mount crypto devices."), 2}, {"zfs-key", 'K', /* TRANSLATORS: "prompt" is a keyword. */ N_("FILE|prompt"), 0, N_("Load zfs crypto key."), 2}, - {"verbose", 'v', NULL, OPTION_ARG_OPTIONAL, N_("print verbose messages."), 2}, - {"uncompress", 'u', NULL, OPTION_ARG_OPTIONAL, N_("Uncompress data."), 2}, + {"verbose", 'v', NULL, 0, N_("print verbose messages."), 2}, + {"uncompress", 'u', NULL, 0, N_("Uncompress data."), 2}, {0, 0, 0, 0, 0, 0} }; diff --git a/util/grub-mount.c b/util/grub-mount.c index 2a5928f0d..e0a7edba3 100644 --- a/util/grub-mount.c +++ b/util/grub-mount.c @@ -409,11 +409,11 @@ fuse_init (void) static struct argp_option options[] = { {"root", 'r', N_("DEVICE_NAME"), 0, N_("Set root device."), 2}, {"debug", 'd', "S", 0, N_("Set debug environment variable."), 2}, - {"crypto", 'C', NULL, OPTION_ARG_OPTIONAL, N_("Mount crypto devices."), 2}, + {"crypto", 'C', NULL, 0, N_("Mount crypto devices."), 2}, {"zfs-key", 'K', /* TRANSLATORS: "prompt" is a keyword. */ N_("FILE|prompt"), 0, N_("Load zfs crypto key."), 2}, - {"verbose", 'v', NULL, OPTION_ARG_OPTIONAL, N_("print verbose messages."), 2}, + {"verbose", 'v', NULL, 0, N_("print verbose messages."), 2}, {0, 0, 0, 0, 0, 0} };