Tools: sim_vehicle.py: sort vehicle type in help
This commit is contained in:
parent
0f6b8375bb
commit
be20f458bf
@ -731,7 +731,7 @@ vehicle_options_string = '|'.join(vinfo.options.keys())
|
|||||||
def generate_frame_help():
|
def generate_frame_help():
|
||||||
ret = ""
|
ret = ""
|
||||||
for vehicle in vinfo.options:
|
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)
|
frame_options_string = '|'.join(frame_options)
|
||||||
ret += "%s: %s\n" % (vehicle, frame_options_string)
|
ret += "%s: %s\n" % (vehicle, frame_options_string)
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user