Skip to content

Commit f502062

Browse files
committed
clients/upslog.c: update help() text with a "*@host" example [#3083, #2756]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 2fc8367 commit f502062

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ https://github.com/networkupstools/nut/milestone/12
214214

215215
- `upslog` tool updates:
216216
* Updated `help()` and failure messages to suggest `-m '*,-'` for logging
217-
of all known local devices to stdout. [#3083]
217+
of all known local devices to stdout. [#3083, #2756]
218218

219219
- `upsmon` client updates:
220220
* The `SHUTDOWNEXIT` option was not handled properly, and the requested

clients/upslog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ static void help(const char *prog)
218218
printf(" and it would not imply foregrounding\n");
219219
printf(" - Unlike one '-s ups -l file' spec, you can specify many tuples\n");
220220
printf(" - Example: -m '*,-' to view updates of all known local devices\n");
221+
printf(" - Example: -m '*@1.2.3.4,-' to view updates of all known remote\n");
222+
printf(" devices served by NUT data server with IP address 1.2.3.4\n");
221223
printf(" -u <user> - Switch to <user> if started as root\n");
222224
printf("\nCommon arguments:\n");
223225
printf(" -V - display the version of this software\n");

0 commit comments

Comments
 (0)