mirror of
https://github.com/owntracks/recorder.git
synced 2026-04-07 00:26:49 +00:00
ocat/recorder: add used environment variables to usage()
This commit is contained in:
6
ocat.c
6
ocat.c
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user