Fix command name alignment broken by ANSI color codes in help output
When color is enabled, the command name was wrapped in ANSI escape sequences before being passed to the %-13s / {:<13} format, causing the invisible escape characters to count toward the minimum width. This left no room for padding, misaligning all descriptions.
Fix: apply the width padding to the plain name first, then wrap the already-padded string in color codes.
Change-Id: Ic32698cef8f1d0d761fa6882ec3210da8aec7df1 Signed-off-by: Todd Stansell todd@stansell.org
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号