diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-12-29 17:26:29 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-12-29 17:26:29 +0000 |
| commit | 67bacc2a947b092f1434c4e5ff526acc3c43dd07 (patch) | |
| tree | 76496e46f60bdddfbe150599302fb801da9a23f8 /main.c | |
| parent | README: use triple quoted blocks for meson/ninja examples (diff) | |
main: use a single printf() when printing usage
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -35,17 +35,19 @@ sig_handler(int signo) static void print_usage(const char *prog_name) { - printf("Usage: %s [OPTIONS]...\n", prog_name); - printf("Usage: %s [OPTIONS]... -- command\n", prog_name); - printf("\n"); - printf("Options:\n"); - printf(" -c,--config=PATH load configuration from PATH (XDG_CONFIG_HOME/footrc)\n" - " -f,--font=FONT comma separated list of fonts in fontconfig format (monospace)\n" - " -t,--term=TERM value to set the environment variable TERM to (foot)\n" - " -g,--geometry=WIDTHxHEIGHT set initial width and height\n" - " -s,--server[=PATH] run as a server (use 'footclient' to start terminals).\n" - " Without PATH, XDG_RUNTIME_DIR/foot.sock will be used.\n" - " -v,--version show the version number and quit\n"); + printf( + "Usage: %s [OPTIONS]...\n" + "Usage: %s [OPTIONS]... -- command\n" + "\n" + "Options:\n" + " -c,--config=PATH load configuration from PATH (XDG_CONFIG_HOME/footrc)\n" + " -f,--font=FONT comma separated list of fonts in fontconfig format (monospace)\n" + " -t,--term=TERM value to set the environment variable TERM to (foot)\n" + " -g,--geometry=WIDTHxHEIGHT set initial width and height\n" + " -s,--server[=PATH] run as a server (use 'footclient' to start terminals).\n" + " Without PATH, XDG_RUNTIME_DIR/foot.sock will be used.\n" + " -v,--version show the version number and quit\n", + prog_name, prog_name); } bool |
