fix help, don't debug by default

This commit is contained in:
Caleb Connolly 2022-07-05 13:21:22 +01:00
parent 6d899d9971
commit e5f4c50b18
No known key found for this signature in database
GPG key ID: 0583312B195F64B6

View file

@ -31,7 +31,7 @@
volatile sig_atomic_t terminate = 0; volatile sig_atomic_t terminate = 0;
bool debug = true; bool debug = false;
struct col background_color = {.r = 0, .g = 0, .b = 0, .a = 255}; struct col background_color = {.r = 0, .g = 0, .b = 0, .a = 255};
#define LOG(fmt, ...) \ #define LOG(fmt, ...) \
@ -46,13 +46,13 @@ int usage()
fprintf(stderr, "pbsplash: postmarketOS bootsplash generator\n"); fprintf(stderr, "pbsplash: postmarketOS bootsplash generator\n");
fprintf(stderr, "-------------------------------------------\n"); fprintf(stderr, "-------------------------------------------\n");
fprintf(stderr, "pbsplash [-h] [-d] [-f font] [-s splash image] [-m message]\n\n"); fprintf(stderr, "pbsplash [-h] [-d] [-f font] [-s splash image] [-m message]\n\n");
fprintf(stderr, " -v|--verbose enable verbose logging\n"); fprintf(stderr, " -v enable verbose logging\n");
fprintf(stderr, " -h|--help show this help\n"); fprintf(stderr, " -h show this help\n");
fprintf(stderr, " -f|--font path to SVG font file (default: %s)\n", DEFAULT_FONT_PATH); fprintf(stderr, " -f path to SVG font file (default: %s)\n", DEFAULT_FONT_PATH);
fprintf(stderr, " -s|--splash-image path to splash image to display\n"); fprintf(stderr, " -s path to splash image to display\n");
fprintf(stderr, " -m|--message message to show under the splash image\n"); fprintf(stderr, " -m message to show under the splash image\n");
fprintf(stderr, " -p|--font-size font size in pt (default: %d)\n", FONT_SIZE_PT); fprintf(stderr, " -p font size in pt (default: %d)\n", FONT_SIZE_PT);
fprintf(stderr, " -d|--dpi custom DPI (for testing)\n"); fprintf(stderr, " -d custom DPI (for testing)\n");
return 1; return 1;
} }