We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 696fa28 commit 363aa99Copy full SHA for 363aa99
meshtastic/__main__.py
@@ -72,6 +72,19 @@ def getPref(config, comp_name):
72
pref = config_type.message_type.fields_by_name.get(snake_name)
73
74
if (not pref) or (not config_type):
75
+ print(f"Not found. Choices in sorted order are:")
76
+ for config_section in objDesc.fields:
77
+ config = objDesc.fields_by_name.get(config_section.name)
78
+ if not config:
79
+ names = []
80
+ for field in config.fields:
81
+ tmp_name = f'{config_section.name}.{field.name}'
82
+ if Globals.getInstance().get_camel_case():
83
+ tmp_name = meshtastic.util.snake_to_camel(tmp_name)
84
+ names.append(tmp_name)
85
+ for temp_name in sorted(names):
86
+ print(f" {temp_name}")
87
+
88
return False
89
90
# read the value
0 commit comments