Tools: sim_vehicle.py: sort vehicle type in help

This commit is contained in:
Peter Barker 2019-07-30 11:00:05 +10:00 committed by Peter Barker
parent 0f6b8375bb
commit be20f458bf

View File

@ -731,7 +731,7 @@ vehicle_options_string = '|'.join(vinfo.options.keys())
def generate_frame_help():
ret = ""
for vehicle in vinfo.options:
frame_options = vinfo.options[vehicle]["frames"].keys()
frame_options = sorted(vinfo.options[vehicle]["frames"].keys())
frame_options_string = '|'.join(frame_options)
ret += "%s: %s\n" % (vehicle, frame_options_string)
return ret