mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-09 15:57:56 -06:00
configfile: Add support for reporting deprecated options
Add a new printer.configfile.warnings with a list of config features that are deprecated. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
c89db2480d
commit
46167cae67
7 changed files with 40 additions and 2 deletions
|
@ -141,8 +141,10 @@ class GCodeMacro:
|
|||
desc=self.cmd_SET_GCODE_VARIABLE_help)
|
||||
self.in_script = False
|
||||
prefix = 'default_parameter_'
|
||||
self.kwparams = { o[len(prefix):].upper(): config.get(o)
|
||||
for o in config.get_prefix_options(prefix) }
|
||||
self.kwparams = {}
|
||||
for option in config.get_prefix_options(prefix):
|
||||
config.deprecate(option)
|
||||
self.kwparams[option[len(prefix):].upper()] = config.get(option)
|
||||
self.variables = {}
|
||||
prefix = 'variable_'
|
||||
for option in config.get_prefix_options(prefix):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue