Skip to content

Commit

Permalink
gz.in: sort list of commands alphabetically
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored Feb 28, 2024
1 parent f84901e commit c61ca24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gz.in
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ usage = 'The \'gz\' command provides a command line interface to the Gazebo'\

# Used to align the commands and the description.
padding_width = 15
commands.each do |cmd, versions|
commands.keys.sort.each do |cmd|
versions = commands[cmd]
# Calculate the padding to add between the command and the description.
padding_to_apply = padding_width - cmd.size - 1
padding = ''
Expand Down

0 comments on commit c61ca24

Please sign in to comment.