Quellcode durchsuchen

[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 vor 13 Jahren
Ursprung
Commit
a180c7526c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      src/hci/commands/nvo_cmd.c

+ 1
- 1
src/hci/commands/nvo_cmd.c Datei anzeigen

@@ -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
 /**

Laden…
Abbrechen
Speichern