Skip to content

Commit 15096e2

Browse files
committed
💄style: update CLI print text style
1 parent e53a0a8 commit 15096e2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/main/java/org/tron/command/HelpCommand.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,39 +81,39 @@ public void usage() {
8181
System.out.println("");
8282

8383
System.out.println( ansi().eraseScreen().render(
84-
"\t@|bold version\t\tPrint the current java-tron version|@"
84+
String.format("\t@|bold %-20s\tPrint the current java-tron version|@", "version")
8585
) );
8686

8787
System.out.println( ansi().eraseScreen().render(
88-
"\t@|bold account\t\tGet your wallet address|@"
88+
String.format("\t@|bold %-20s\tPrint the current java-tron version|@", "account")
8989
) );
9090

9191
System.out.println( ansi().eraseScreen().render(
92-
"\t@|bold getbalance\t\tGet your balance|@"
92+
String.format("\t@|bold %-20s\tPrint the current java-tron version|@", "getbalance")
9393
) );
9494

9595
System.out.println( ansi().eraseScreen().render(
96-
"\t@|bold send\t\tSend balance to receiver address|@"
96+
String.format("\t@|bold %-20s\tPrint the current java-tron version|@", "send")
9797
) );
9898

9999
System.out.println( ansi().eraseScreen().render(
100-
"\t@|bold printblockchain\t\tPrint blockchain|@"
100+
String.format("\t@|bold %-20s\tPrint the current java-tron version|@", "printblockchain")
101101
) );
102102

103103
System.out.println( ansi().eraseScreen().render(
104-
"\t@|bold consensus\t\tCreate a server|@"
104+
String.format("\t@|bold %-20s\tPrint the current java-tron version|@", "consensus")
105105
) );
106106

107107
System.out.println( ansi().eraseScreen().render(
108-
"\t@|bold getmessage\t\tGet a consensus message|@"
108+
String.format("\t@|bold %-20s\tPrint the current java-tron version|@", "getmessage")
109109
) );
110110

111111
System.out.println( ansi().eraseScreen().render(
112-
"\t@|bold putmessage\t\tPut a consensus message|@"
112+
String.format("\t@|bold %-20s\tPrint the current java-tron version|@", "putmessage")
113113
) );
114114

115115
System.out.println( ansi().eraseScreen().render(
116-
"\t@|bold exit\t\tExit java-tron application|@"
116+
String.format("\t@|bold %-20s\tPrint the current java-tron version|@", "exit")
117117
) );
118118

119119
System.out.println("");

0 commit comments

Comments
 (0)