diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-02-17 15:03:39 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-02-17 15:03:39 +0100 |
commit | 002ec24cc7a67e85e85427d0c5ab31521aab1134 (patch) | |
tree | 553d48fc5d1bd0c355f9087f6d4ab8e68148c4bf | |
parent | b29e4d756726e9685ad812210c5f2e5298100140 (diff) |
remove service prefix from options, add helptext for services
-rw-r--r-- | commands-dms.h | 11 | ||||
-rw-r--r-- | commands-wds.h | 11 | ||||
-rw-r--r-- | main.c | 2 |
3 files changed, 18 insertions, 6 deletions
diff --git a/commands-dms.h b/commands-dms.h index af661bc..14949cf 100644 --- a/commands-dms.h +++ b/commands-dms.h @@ -1,5 +1,10 @@ #define __uqmi_dms_commands \ - __uqmi_command(dms_get_pin_status, dms-get-pin-status, no, QMI_SERVICE_DMS), \ - __uqmi_command(dms_verify_pin1, dms-verify-pin1, required, QMI_SERVICE_DMS), \ - __uqmi_command(dms_verify_pin2, dms-verify-pin2, required, QMI_SERVICE_DMS) \ + __uqmi_command(dms_get_pin_status, get-pin-status, no, QMI_SERVICE_DMS), \ + __uqmi_command(dms_verify_pin1, verify-pin1, required, QMI_SERVICE_DMS), \ + __uqmi_command(dms_verify_pin2, verify-pin2, required, QMI_SERVICE_DMS) \ + +#define dms_helptext \ + " --get-pin-status: Get PIN verification status\n" \ + " --verify-pin1: Verify PIN1\n" \ + " --verify-pin2: Verify PIN2\n" \ diff --git a/commands-wds.h b/commands-wds.h index 3690c3f..2374f85 100644 --- a/commands-wds.h +++ b/commands-wds.h @@ -1,5 +1,10 @@ #define __uqmi_wds_commands \ - __uqmi_command(wds_set_auth, wds-set-auth, required, QMI_SERVICE_WDS), \ - __uqmi_command(wds_set_username, wds-set-username, required, QMI_SERVICE_WDS), \ - __uqmi_command(wds_set_password, wds-set-password, required, QMI_SERVICE_WDS) + __uqmi_command(wds_set_auth, set-auth, required, QMI_SERVICE_WDS), \ + __uqmi_command(wds_set_username, set-username, required, QMI_SERVICE_WDS), \ + __uqmi_command(wds_set_password, set-password, required, QMI_SERVICE_WDS) + +#define wds_helptext \ + " --set-auth pap|chap|both|none: Set network authentication type\n" \ + " --set-username: Set network username\n" \ + " --set-password: Set network password\n" \ @@ -38,6 +38,8 @@ static int usage(const char *progname) " --set-client-id <name>,<id>: Set Client ID for service <name> to <id>\n" " --get-client-id <name>: Connect and get Client ID for service <name>\n" " (implies --keep-client-id)\n" + wds_helptext + dms_helptext "\n", progname); return 1; } |