From f87920a3934ae41bf0f8ad1e17348244da41062e Mon Sep 17 00:00:00 2001 From: Glenn Date: Fri, 29 Dec 2023 16:01:40 +0100 Subject: [PATCH] feat: add alternative (shorter) syntax for prompts --- src/config.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.cr b/src/config.cr index 101404a..57f8e05 100644 --- a/src/config.cr +++ b/src/config.cr @@ -28,11 +28,11 @@ module CodePreloader @output_file_path = output_file end - parser.on("--header-prompt=HEADER_PROMPT_FILE", "Load header prompt from HEADER_PROMPT_FILE") do |header_prompt_file| + parser.on("-H HEADER_PROMPT_FILE", "--header-prompt=HEADER_PROMPT_FILE", "Load header prompt from HEADER_PROMPT_FILE") do |header_prompt_file| @header_prompt_file_path = header_prompt_file end - parser.on("--footer-prompt=FOOTER_PROMPT_FILE", "Load footer prompt from FOOTER_PROMPT_FILE") do |footer_prompt_file| + parser.on("-F FOOTER_PROMPT_FILE", "--footer-prompt=FOOTER_PROMPT_FILE", "Load footer prompt from FOOTER_PROMPT_FILE") do |footer_prompt_file| @footer_prompt_file_path = footer_prompt_file end