From c7b0c570103748fdb1240cb9e520bfd1cf71a28f Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 7 Jul 2022 10:54:59 -0700 Subject: [PATCH] client: remove newline/tab encoding from help description ad-hoc, ap, and wsc all had descriptions longer than the max width but this is now taken care of automatically. Remove the tab and newline's from the description. The WSC pin command description was also changed to be more accurate since the pin does not need to be 8 digits. --- client/ad-hoc.c | 11 ++++------- client/ap.c | 7 +++---- client/wsc.c | 4 ++-- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/client/ad-hoc.c b/client/ad-hoc.c index c90f9dd6..33bff9ca 100644 --- a/client/ad-hoc.c +++ b/client/ad-hoc.c @@ -215,14 +215,11 @@ static enum cmd_status cmd_stop(const char *device_name, char **argv, int argc) static const struct command ad_hoc_commands[] = { { NULL, "list", NULL, cmd_list, "List devices in Ad-hoc mode", true }, { "", "start", "<\"network name\"> ", cmd_start, - "Start or join an existing\n" - "\t\t\t\t\t\t Ad-Hoc network called\n" - "\t\t\t\t\t\t \"network name\" with a\n" - "\t\t\t\t\t\t passphrase" }, + "Start or join an existing Ad-Hoc network called " + "\"network name\" with a passphrase" }, { "", "start_open", "<\"network name\">", cmd_start_open, - "Start or join an existing\n" - "\t\t\t\t\t\t open Ad-Hoc network called\n" - "\t\t\t\t\t\t \"network name\"" }, + "Start or join an existing open Ad-Hoc network called" + " \"network name\"" }, { "", "stop", NULL, cmd_stop, "Leave an Ad-Hoc network" }, { } }; diff --git a/client/ap.c b/client/ap.c index bb583397..b992c792 100644 --- a/client/ap.c +++ b/client/ap.c @@ -416,12 +416,11 @@ static enum cmd_status cmd_get_networks(const char *device_name, char **argv, static const struct command ap_commands[] = { { NULL, "list", NULL, cmd_list, "List devices in AP mode", true }, { "", "start", "<\"network name\"> ", cmd_start, - "Start an access point\n\t\t\t\t\t\t called \"network " - "name\" with\n\t\t\t\t\t\t a passphrase" }, + "Start an access point called \"network " + "name\" with a passphrase" }, { "", "start-profile", "<\"network name\">", cmd_start_profile, "Start an access point based on a disk profile" }, - { "", "stop", NULL, cmd_stop, "Stop a started access\n" - "\t\t\t\t\t\t point" }, + { "", "stop", NULL, cmd_stop, "Stop a started access point" }, { "", "show", NULL, cmd_show, "Show AP info", false }, { "", "scan", NULL, cmd_scan, "Start an AP scan", false }, { "", "get-networks", NULL, cmd_get_networks, diff --git a/client/wsc.c b/client/wsc.c index 39950453..1e5912ce 100644 --- a/client/wsc.c +++ b/client/wsc.c @@ -182,10 +182,10 @@ static enum cmd_status cmd_cancel(const char *device_name, static const struct command wsc_commands[] = { { NULL, "list", NULL, cmd_list, "List WSC-capable devices", true }, { "", "push-button", NULL, cmd_push_button, "PushButton mode" }, - { "", "start-user-pin", "<8 digit PIN>", cmd_start_user_pin, + { "", "start-user-pin", "", cmd_start_user_pin, "PIN mode" }, { "", "start-pin", NULL, cmd_start_pin, - "PIN mode with generated\n\t\t\t\t\t\t 8 digit PIN" }, + "PIN mode with generated 8 digit PIN" }, { "", "cancel", NULL, cmd_cancel, "Aborts WSC operations" }, { } };