Browse Source

[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>
tags/v1.20.1
Michael Brown 14 years ago
parent
commit
a180c7526c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/hci/commands/nvo_cmd.c

+ 1
- 1
src/hci/commands/nvo_cmd.c View File

@@ -87,7 +87,7 @@ static struct option_descriptor set_opts[] = {};
87 87
 
88 88
 /** "set" command descriptor */
89 89
 static struct command_descriptor set_cmd =
90
-	COMMAND_DESC ( struct set_options, set_opts, 2, MAX_ARGUMENTS,
90
+	COMMAND_DESC ( struct set_options, set_opts, 1, MAX_ARGUMENTS,
91 91
 		       "<setting> <value>", "" );
92 92
 
93 93
 /**

Loading…
Cancel
Save