aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-01-13 19:59:54 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-01-13 20:01:05 +0000
commit0791fba9c7eb3cb6c605fc0f25e34c9ce5b0a809 (patch)
treeb3d8a8f528501cb32a5c8013019b9089a2abc01b /main.c
parentMerge branch 'selection-handle-uri-list-wihtout-final-newline' (diff)
main: remove deprecated "--geometry" option
Closes #287
Diffstat (limited to 'main.c')
-rw-r--r--main.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/main.c b/main.c
index 094c242a..592e5dfb 100644
--- a/main.c
+++ b/main.c
@@ -66,8 +66,8 @@ print_usage(const char *prog_name)
" --maximized start in maximized mode\n"
" --fullscreen start in fullscreen mode\n"
" --login-shell start shell as a login shell\n"
- " -w,--window-size-pixels=WIDTHxHEIGHT initial width and height, in pixels (alternative to '--dimensions')\n"
- " -W,--window-size-chars=WIDTHxHEIGHT initial width and height, in characters (alternative to '--geometry')\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"
@@ -162,7 +162,6 @@ main(int argc, char *const *argv)
{"app-id", required_argument, NULL, 'a'},
{"login-shell", no_argument, NULL, 'L'},
{"font", required_argument, NULL, 'f'},
- {"geometry", required_argument, NULL, 'g'}, /* Deprecated */
{"window-size-pixels", required_argument, NULL, 'w'},
{"window-size-chars", required_argument, NULL, 'W'},
{"server", optional_argument, NULL, 's'},
@@ -201,7 +200,7 @@ main(int argc, char *const *argv)
user_notifications_t user_notifications = tll_init();
while (true) {
- int c = getopt_long(argc, argv, "+c:Ct:T:a:Lf:g:w:W:s::HmFPp:l::Svh", longopts, NULL);
+ int c = getopt_long(argc, argv, "+c:Ct:T:a:Lf:w:W:s::HmFPp:l::Svh", longopts, NULL);
if (c == -1)
break;
@@ -252,17 +251,6 @@ main(int argc, char *const *argv)
}
break;
- case 'g': {
- LOG_WARN("deprecated: -g,--geometry command line option. Use -w,--window-size-pixels instead");
- struct user_notification deprecation = {
- .kind = USER_NOTIFICATION_DEPRECATED,
- .text = xstrdup(
- "\033[1m-g,--geometry\033[21m command line option. "
- "Use \033[1m-w,--window-size-pixels\033[21m instead"),
- };
- tll_push_back(user_notifications, deprecation);
- /* FALLTHROUGH */
- }
case 'w': {
unsigned width, height;
if (sscanf(optarg, "%ux%u", &width, &height) != 2 || width == 0 || height == 0) {