Skip to content

Commit

Permalink
fix(cli): modify user properties description
Browse files Browse the repository at this point in the history
  • Loading branch information
ysfscream authored and Red-Asuka committed Jul 28, 2022
1 parent 7028e4d commit ccc4182
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ mqttx conn --help
| --cert <PATH> | path to the cert file |
| --ca <PATH> | path to the ca certificate |
| --insecure | do not verify the server certificate |
| -up, --user-properties <USERPROPERTIES...> | properties of will by MQTT 5.0 (e.g. -up "name: mqttx cli") |
| -up, --user-properties <USERPROPERTIES...> | the user properties of MQTT 5.0 (e.g. -up "name: mqttx cli") |
| --will-topic <TOPIC> | the will topic |
| --will-message <BODY> | the will message |
| --will-qos <0/1/2> | the will qos |
Expand Down Expand Up @@ -176,7 +176,7 @@ mqttx sub --help
| --cert <PATH> | path to the cert file |
| --ca | path to the ca certificate |
| --insecure | do not verify the server certificate |
| -up, --user-properties <USERPROPERTIES...> | properties of will by MQTT 5.0 (e.g. -up "name: mqttx cli") |
| -up, --user-properties <USERPROPERTIES...> | the user properties of MQTT 5.0 (e.g. -up "name: mqttx cli") |
| --will-topic <TOPIC> | the will topic |
| --will-message <BODY> | the will message |
| --will-qos <0/1/2> | the will qos |
Expand Down Expand Up @@ -209,7 +209,7 @@ mqttx pub --help
| --cert <PATH> | path to the cert file |
| --ca | path to the ca certificate |
| --insecure | do not verify the server certificate |
| -up, --user-properties <USERPROPERTIES...> | properties of will by MQTT 5.0 (e.g. -up "name: mqttx cli") |
| -up, --user-properties <USERPROPERTIES...> | the user properties of MQTT 5.0 (e.g. -up "name: mqttx cli") |
| --will-topic <TOPIC> | the will topic |
| --will-message <BODY> | the will message |
| --will-qos <0/1/2> | the will qos (default: 0) |
Expand Down
6 changes: 3 additions & 3 deletions cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class Commander {
.option('--insecure', 'do not verify the server certificate')
.option(
'-up, --user-properties <USERPROPERTIES...>',
'properties of will by MQTT 5.0 (e.g. -up "name: mqttx cli")',
'the user properties of MQTT 5.0 (e.g. -up "name: mqttx cli")',
parseUserProperties,
)
.option('--will-topic <TOPIC>', 'the will topic')
Expand Down Expand Up @@ -69,7 +69,7 @@ export class Commander {
.option('--insecure', 'do not verify the server certificate')
.option(
'-up, --user-properties <USERPROPERTIES...>',
'properties of will by MQTT 5.0 (e.g. -up "name: mqttx cli")',
'the user properties of MQTT 5.0 (e.g. -up "name: mqttx cli")',
parseUserProperties,
)
.option('--will-topic <TOPIC>', 'the will topic')
Expand Down Expand Up @@ -98,7 +98,7 @@ export class Commander {
.option('--insecure', 'do not verify the server certificate')
.option(
'-up, --user-properties <USERPROPERTIES...>',
'properties of will by MQTT 5.0 (e.g. -up "name: mqttx cli")',
'the user properties of MQTT 5.0 (e.g. -up "name: mqttx cli")',
parseUserProperties,
)
.option('--will-topic <TOPIC>', 'the will topic')
Expand Down

0 comments on commit ccc4182

Please sign in to comment.