ocat/recorder: add used environment variables to usage()

This commit is contained in:
Jan-Piet Mens
2015-09-01 18:21:07 +02:00
parent 58eaaa945c
commit 166ff17085
2 changed files with 14 additions and 0 deletions

6
ocat.c
View File

@@ -136,6 +136,12 @@ void usage(char *prog)
printf(" --last -L JSON object with last users\n");
printf(" --killdata requires -u and -d\n");
printf(" --storage -S storage dir (./store)\n");
printf("\n");
printf("Options override these environment variables:\n");
printf(" $OCAT_USERNAME\n");
printf(" $OCAT_DEVICE\n");
printf(" $OCAT_FORMAT\n");
printf(" $OCAT_STORAGEDIR\n");
exit(1);
}

View File

@@ -665,6 +665,14 @@ void usage(char *prog)
printf(" --http-port <port> -A HTTP port (8083)\n");
printf(" --doc-root <directory> document root (./wdocs)\n");
#endif
printf("\n");
printf("Options override these environment variables:\n");
printf(" $OTR_HOST MQTT hostname\n");
printf(" $OTR_PORT MQTT port\n");
printf(" $OTR_STORAGEDIR\n");
printf(" $OTR_USER\n");
printf(" $OTR_PASS\n");
printf(" $OTR_CAFILE PEM CA certificate chain\n");
exit(1);
}