0.14.5: fix usage

master 0.14.5
Michael Santos 2 years ago
parent 840ef08251
commit 11d854f9e7

@ -214,9 +214,11 @@ int main(int argc, char **argv) {
break;
case 'h':
default:
usage(state);
exit(0);
default:
usage(state);
exit(2);
}
}
@ -567,10 +569,9 @@ static long long xmppipe_strtonum(xmppipe_state_t *state, const char *nptr,
}
static void usage(xmppipe_state_t *state) {
(void)fprintf(stderr, "%s %s (using %s mode process restriction)\n",
__progname, XMPPIPE_VERSION, RESTRICT_PROCESS);
(void)fprintf(
stderr,
"%s %s (using %s mode process restriction)\n"
"usage: %s [OPTIONS]\n"
" -u, --username <jid> XMPP username (aka JID)\n"
" -p, --password <password> XMPP password\n"
@ -601,5 +602,5 @@ static void usage(xmppipe_state_t *state) {
" --chat use one to one chat\n"
" --no-tls-verify disable TLS certificate "
"verification\n",
__progname);
__progname, XMPPIPE_VERSION, RESTRICT_PROCESS, __progname);
}

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

Loading…
Cancel
Save