From 0eb03b7adccbc8b8156e282cc9920f49a74f683f Mon Sep 17 00:00:00 2001 From: Scoopta Date: Mon, 4 Nov 2019 17:49:34 -0800 Subject: [PATCH] Added --prompt as a long opt for -p --- src/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 868b852..c3991cd 100644 --- a/src/main.c +++ b/src/main.c @@ -57,7 +57,7 @@ static void print_usage(char** argv) { printf("--show\t\t-S\tSpecifies the mode to run in\n"); printf("--width\t\t-W\tSpecifies the surface width\n"); printf("--height\t-H\tSpecifies the surface height\n"); - printf("\t\t-p\tPrompt to display\n"); + printf("--prompt\t-p\tPrompt to display\n"); printf("--xoffset\t-x\tThe x offset\n"); printf("--yoffset\t-y\tThe y offset\n"); printf("--normal-window\t-n\tRender to a normal window\n"); @@ -230,6 +230,12 @@ int main(int argc, char** argv) { .flag = NULL, .val = 'H' }, + { + .name = "prompt", + .has_arg = required_argument, + .flag = NULL, + .val = 'p' + }, { .name = "xoffset", .has_arg = required_argument,