mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-16 23:40:43 +01:00
client: update command table header
The table header needs to be adjusted to include spaces between columns.
This commit is contained in:
parent
5bf1410ac4
commit
82cc80e54e
@ -509,16 +509,16 @@ static void list_commands(const char *command_family,
|
|||||||
|
|
||||||
static void list_cmd_options(void)
|
static void list_cmd_options(void)
|
||||||
{
|
{
|
||||||
display(MARGIN "--%-*s%s\n", 48, COMMAND_OPTION_USERNAME,
|
display(MARGIN "--%-*s %s\n", 48, COMMAND_OPTION_USERNAME,
|
||||||
"Provide username");
|
"Provide username");
|
||||||
display(MARGIN "--%-*s%s\n", 48, COMMAND_OPTION_PASSWORD,
|
display(MARGIN "--%-*s %s\n", 48, COMMAND_OPTION_PASSWORD,
|
||||||
"Provide password");
|
"Provide password");
|
||||||
display(MARGIN "--%-*s%s\n", 48, COMMAND_OPTION_PASSPHRASE,
|
display(MARGIN "--%-*s %s\n", 48, COMMAND_OPTION_PASSPHRASE,
|
||||||
"Provide passphrase");
|
"Provide passphrase");
|
||||||
display(MARGIN "--%-*s%s\n", 48, COMMAND_OPTION_DONTASK,
|
display(MARGIN "--%-*s %s\n", 48, COMMAND_OPTION_DONTASK,
|
||||||
"Don't ask for missing\n"
|
"Don't ask for missing\n"
|
||||||
"\t\t\t\t\t\t credentials");
|
"\t\t\t\t\t\t credentials");
|
||||||
display(MARGIN "--%-*s%s\n", 48, "help", "Display help");
|
display(MARGIN "--%-*s %s\n", 48, "help", "Display help");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void list_cmd_families(void)
|
static void list_cmd_families(void)
|
||||||
@ -542,12 +542,12 @@ static void command_display_help(void)
|
|||||||
display(MARGIN "iwctl [--options] [commands]\n");
|
display(MARGIN "iwctl [--options] [commands]\n");
|
||||||
display_table_footer();
|
display_table_footer();
|
||||||
|
|
||||||
display_table_header("Available options", MARGIN "%-*s%-*s",
|
display_table_header("Available options", MARGIN "%-*s %-*s",
|
||||||
50, "Options", 28, "Description");
|
50, "Options", 28, "Description");
|
||||||
list_cmd_options();
|
list_cmd_options();
|
||||||
display_table_footer();
|
display_table_footer();
|
||||||
|
|
||||||
display_table_header("Available commands", MARGIN "%-*s%-*s",
|
display_table_header("Available commands", MARGIN "%-*s %-*s",
|
||||||
50, "Commands", 28, "Description");
|
50, "Commands", 28, "Description");
|
||||||
list_cmd_families();
|
list_cmd_families();
|
||||||
display_table_footer();
|
display_table_footer();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user