From 002ec24cc7a67e85e85427d0c5ab31521aab1134 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 17 Feb 2013 15:03:39 +0100 Subject: [PATCH] remove service prefix from options, add helptext for services --- commands-dms.h | 11 ++++++++--- commands-wds.h | 11 ++++++++--- 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" \ diff --git a/main.c b/main.c index 47e0ff2..5605da2 100644 --- a/main.c +++ b/main.c @@ -38,6 +38,8 @@ static int usage(const char *progname) " --set-client-id ,: Set Client ID for service to \n" " --get-client-id : Connect and get Client ID for service \n" " (implies --keep-client-id)\n" + wds_helptext + dms_helptext "\n", progname); return 1; } -- 2.25.1