Skip to content

Commit 2754c7b

Browse files
author
4G3NT
committed
Remove obsolete padding code
It appears that using %-30s for padding is unnecessary in this context, as %s alone seems to work perfectly without any issues.
1 parent 08ffe3e commit 2754c7b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/tldr.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -209,19 +209,19 @@ print_usage(char const *arg)
209209
/* *INDENT-OFF* */
210210
fprintf(stdout, out, arg);
211211
fprintf(stdout, "available commands:\n");
212-
fprintf(stdout, " %-23s %-30s\n", "-v, --verbose", "verbose output (when used with -c or -u)");
213-
fprintf(stdout, " %-23s %-30s\n", "-v, --version", "print version and exit");
214-
fprintf(stdout, " %-23s %-30s\n", "-h, --help", "print this help and exit");
215-
fprintf(stdout, " %-23s %-30s\n", "-u, --update", "update local database");
216-
fprintf(stdout, " %-23s %-30s\n", "-c, --clear-cache", "clear local database");
217-
fprintf(stdout, " %-23s %-30s\n", "-p, --platform=PLATFORM",
212+
fprintf(stdout, " %-23s %s\n", "-v, --verbose", "verbose output (when used with -c or -u)");
213+
fprintf(stdout, " %-23s %s\n", "-v, --version", "print version and exit");
214+
fprintf(stdout, " %-23s %s\n", "-h, --help", "print this help and exit");
215+
fprintf(stdout, " %-23s %s\n", "-u, --update", "update local database");
216+
fprintf(stdout, " %-23s %s\n", "-c, --clear-cache", "clear local database");
217+
fprintf(stdout, " %-23s %s\n", "-p, --platform=PLATFORM",
218218
"select platform, supported are linux / osx / sunos / windows / common");
219-
fprintf(stdout, " %-23s %-30s\n", "-r, --render=PATH",
219+
fprintf(stdout, " %-23s %s\n", "-r, --render=PATH",
220220
"render a local page for testing purposes");
221-
fprintf(stdout, " %-23s %-30s\n", "--list", "list all entries in the local database");
222-
fprintf(stdout, " %-23s %-30s\n", "--linux", "show command page for Linux");
223-
fprintf(stdout, " %-23s %-30s\n", "--osx", "show command page for OSX");
224-
fprintf(stdout, " %-23s %-30s\n", "--sunos", "show command page for SunOS");
221+
fprintf(stdout, " %-23s %s\n", "--list", "list all entries in the local database");
222+
fprintf(stdout, " %-23s %s\n", "--linux", "show command page for Linux");
223+
fprintf(stdout, " %-23s %s\n", "--osx", "show command page for OSX");
224+
fprintf(stdout, " %-23s %s\n", "--sunos", "show command page for SunOS");
225225
/* *INDENT-ON* */
226226
}
227227

0 commit comments

Comments
 (0)