Selaa lähdekoodia

[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 13 vuotta sitten
vanhempi
commit
a180c7526c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      src/hci/commands/nvo_cmd.c

+ 1
- 1
src/hci/commands/nvo_cmd.c Näytä tiedosto

87
 
87
 
88
 /** "set" command descriptor */
88
 /** "set" command descriptor */
89
 static struct command_descriptor set_cmd =
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
 		       "<setting> <value>", "" );
91
 		       "<setting> <value>", "" );
92
 
92
 
93
 /**
93
 /**

Loading…
Peruuta
Tallenna