mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
main/client: add missing short options to usage (--help output)
Initially, these options *did not* have short options. Then, ine813883367, the short options were added to footclient’s getopt_long() call. This was in a sense incorrect. But instead of reverting it, the short options were made official in8eaa195990, by adding the short options to foot, documenting them in the man pages, and adding them to the shell completions. Though the commit message of8eaa195990says the options have now been included in usage(), they were in fact *not* added to usage. This patch does just that.
This commit is contained in:
parent
4753d34163
commit
59b127dc69
2 changed files with 11 additions and 11 deletions
10
client.c
10
client.c
|
|
@ -47,15 +47,15 @@ print_usage(const char *prog_name)
|
|||
printf("\n");
|
||||
printf("Options:\n");
|
||||
printf(" -t,--term=TERM value to set the environment variable TERM to (foot)\n"
|
||||
" --title=TITLE initial window title (foot)\n"
|
||||
" -T,--title=TITLE initial window title (foot)\n"
|
||||
" -a,--app-id=ID window application ID (foot)\n"
|
||||
" -w,--window-size-pixels=WIDTHxHEIGHT initial width and height, in pixels\n"
|
||||
" -W,--window-size-chars=WIDTHxHEIGHT initial width and height, in characters\n"
|
||||
" --maximized start in maximized mode\n"
|
||||
" --fullscreen start in fullscreen mode\n"
|
||||
" --login-shell start shell as a login shell\n"
|
||||
" -m,--maximized start in maximized mode\n"
|
||||
" -F,--fullscreen start in fullscreen mode\n"
|
||||
" -L,--login-shell start shell as a login shell\n"
|
||||
" -s,--server-socket=PATH path to the server UNIX domain socket (default=$XDG_RUNTIME_DIR/foot-$WAYLAND_DISPLAY.sock)\n"
|
||||
" --hold remain open after child process exits\n"
|
||||
" -H,--hold remain open after child process exits\n"
|
||||
" -d,---log-level={info|warning|error} log level (info)\n"
|
||||
" -l,--log-colorize=[{never|always|auto}] enable/disable colorization of log output on stderr\n"
|
||||
" -v,--version show the version number and quit\n");
|
||||
|
|
|
|||
12
main.c
12
main.c
|
|
@ -59,19 +59,19 @@ print_usage(const char *prog_name)
|
|||
"\n"
|
||||
"Options:\n"
|
||||
" -c,--config=PATH load configuration from PATH ($XDG_CONFIG_HOME/foot/foot.ini)\n"
|
||||
" --check-config verify configuration, exit with 0 if ok, otherwise exit with 1\n"
|
||||
" -C,--check-config verify configuration, exit with 0 if ok, otherwise exit with 1\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"
|
||||
" --title=TITLE initial window title (foot)\n"
|
||||
" -T,--title=TITLE initial window title (foot)\n"
|
||||
" -a,--app-id=ID window application ID (foot)\n"
|
||||
" --maximized start in maximized mode\n"
|
||||
" --fullscreen start in fullscreen mode\n"
|
||||
" --login-shell start shell as a login shell\n"
|
||||
" -m,--maximized start in maximized mode\n"
|
||||
" -F,--fullscreen start in fullscreen mode\n"
|
||||
" -L,--login-shell start shell as a login shell\n"
|
||||
" -w,--window-size-pixels=WIDTHxHEIGHT initial width and height, in pixels\n"
|
||||
" -W,--window-size-chars=WIDTHxHEIGHT initial width and height, in characters\n"
|
||||
" -s,--server[=PATH] run as a server (use 'footclient' to start terminals).\n"
|
||||
" Without PATH, $XDG_RUNTIME_DIR/foot-$WAYLAND_DISPLAY.sock will be used.\n"
|
||||
" --hold remain open after child process exits\n"
|
||||
" -H,--hold remain open after child process exits\n"
|
||||
" -p,--print-pid=FILE|FD print PID to file or FD (only applicable in server mode)\n"
|
||||
" -d,--log-level={info|warning|error} log level (info)\n"
|
||||
" -l,--log-colorize=[{never|always|auto}] enable/disable colorization of log output on stderr\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue