Skip to content

Commit 363aa99

Browse files
committed
Push it real good
1 parent 696fa28 commit 363aa99

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

meshtastic/__main__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,19 @@ def getPref(config, comp_name):
7272
pref = config_type.message_type.fields_by_name.get(snake_name)
7373

7474
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+
7588
return False
7689

7790
# read the value

0 commit comments

Comments
 (0)