Update usage with --format option.
master
Michael Santos 5 years ago
parent a45b734211
commit 5f2c3003ff

@ -109,6 +109,9 @@ Options
-a, --address *address:port*
: Specify the IP address and port of the XMPP server
-F, --format *text:csv*
: stdin is text (default) or colon separated values
-d, --discard
: Discard stdin when MUC is empty
@ -406,12 +409,4 @@ TODO
* support alternative input modes
Add a command line argument to enable various input modes. The default
mode converts stdin to a message body.
"formatted" mode takes the same input as the output. For example,
to send a chat message:
echo 'm:chat:user1@example.com/mobile:user2@example.com:Message%20goes%20here' | xmppipe
A "raw" mode could also be added: XML input/output.
* "raw" mode: XML input/output

@ -563,6 +563,7 @@ static void usage(xmppipe_state_t *state) {
" -S, --subject <subject> set MUC subject\n"
" -a, --address <addr:port> set XMPP server address (port is "
"optional)\n"
" -F, --format <text|csv> stdin is text (default) or colon separated values\n"
" -d, --discard discard stdin when MUC is empty\n"
" -D, --discard-to-stdout discard stdin and print to local "

@ -27,7 +27,7 @@
#include "strtonum.h"
#endif
#define XMPPIPE_VERSION "0.12.0"
#define XMPPIPE_VERSION "0.13.0"
#define XMPPIPE_RESOURCE "xmppipe"
#define XMPPIPE_STREQ(a, b) (strcmp((a), (b)) == 0)

Loading…
Cancel
Save