diff options
Diffstat (limited to 'apps/nshlib/nsh_parse.c')
-rw-r--r-- | apps/nshlib/nsh_parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/nshlib/nsh_parse.c b/apps/nshlib/nsh_parse.c index d449bf61e..68dca6c08 100644 --- a/apps/nshlib/nsh_parse.c +++ b/apps/nshlib/nsh_parse.c @@ -513,7 +513,11 @@ static inline void help_cmdlist(FAR struct nsh_vtbl_s *vtbl) nsh_output(vtbl, " "); for (j = 0, k = i; j < CMDS_PER_LINE && k < NUM_CMDS; j++, k += NUM_CMD_ROWS) { +#ifdef CONFIG_NOPRINTF_FIELDWIDTH + nsh_output(vtbl, "%s\t", g_cmdmap[k].cmd); +#else nsh_output(vtbl, "%-12s", g_cmdmap[k].cmd); +#endif } nsh_output(vtbl, "\n"); |