commit f4cdd9172cc6eca6a28cb60b3de5c96b8631bf93
parent fe50c328d43728d9b338e21dd1772fba74eec34b
Author: Louis Burda <quent.burda@gmail.com>
Date: Sun, 19 Nov 2023 02:38:28 +0100
Add support for -- separator
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/apty.c b/apty.c
@@ -120,6 +120,9 @@ main(int argc, char **argv)
winsize.ws_col = atoi(*++arg);
} else if (!strcmp(*arg, "-h") || !strcmp(*arg, "--height")) {
winsize.ws_row = atoi(*++arg);
+ } else if (!strcmp(*arg, "--")) {
+ arg++;
+ break;
} else {
break;
}