]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[settings] Allow "set" command to take an empty value
authorMichael Brown <mcb30@ipxe.org>
Mon, 22 Nov 2010 21:11:03 +0000 (21:11 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 22 Nov 2010 21:14:11 +0000 (21:14 +0000)
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>
src/hci/commands/nvo_cmd.c

index 87bdd8a1681d934b99fdec87e1f3ef010416c0bb..3513c8debedce5f78fe6f55f90956d26b9c1233f 100644 (file)
@@ -87,7 +87,7 @@ static struct option_descriptor set_opts[] = {};
 
 /** "set" command descriptor */
 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>", "" );
 
 /**