From 4e3de1ba7bb5e8e689691e391826d8c444906d27 Mon Sep 17 00:00:00 2001 From: Nakidai Date: Sun, 29 Sep 2024 12:52:17 +0300 Subject: Update usage Add info about env var --- main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index bbc5dfd..fd97a66 100644 --- a/main.c +++ b/main.c @@ -28,13 +28,15 @@ noreturn void usage(char *name, bool full) fprintf( full ? stdout : stderr, full ? - "usage: %s [-h] [-i/--host IP] [-p/--port PORT]\n" + "usage: env CPTC_TOKEN=TOKEN %s [-h] [-i/--host IP] [-p/--port PORT]\n" "Also requires CPTC_TOKEN environment variable set to some discord\n" "bot's token\n\n" "Options:\n" - " -h, --help show this help message and quit\n" - " -i, --host IP set bind address to IP )default: 127.0.0.1)\n" - " -p, --port PORT set bind port to PORT (default: 8080)\n" + " -h, --help show this help message and quit\n" + " -i, --host IP set bind address to IP )default: 127.0.0.1)\n" + " -p, --port PORT set bind port to PORT (default: 8080)\n" + "Environment variables:\n" + " CPTC_TOKEN=TOKEN Discord bot's TOKEN\n" : "Try '%s --help' for more information\n", name -- cgit 1.4.1