This patch fixes a bug where the help output doesn't display subcommands when a tool has less than 3 subcommands.
Unfortunately I couldn't find a way to write a unittest for this change. Please let me know what's the best way to test this change (if any).