mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 01:22:37 +03:00
[settings] Allow "set" command to take an empty value
Allow "set <variable>" to be used to set the variable to an empty value, if permitted by the setting type. Note that some settings backends do not differentiate between an empty value and a non-existent value, so this may or may not be equivalent to "clear <variable>". Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -87,7 +87,7 @@ static struct option_descriptor set_opts[] = {};
|
|||||||
|
|
||||||
/** "set" command descriptor */
|
/** "set" command descriptor */
|
||||||
static struct command_descriptor set_cmd =
|
static struct command_descriptor set_cmd =
|
||||||
COMMAND_DESC ( struct set_options, set_opts, 2, MAX_ARGUMENTS,
|
COMMAND_DESC ( struct set_options, set_opts, 1, MAX_ARGUMENTS,
|
||||||
"<setting> <value>", "" );
|
"<setting> <value>", "" );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user