From e057581c51fec414d1e57fa3d4b3fc7387fc2aff Mon Sep 17 00:00:00 2001 From: Glenn Date: Mon, 16 Jun 2025 16:47:08 +0200 Subject: [PATCH] fix(config): add short option for version command Enhancing user experience by providing a shorthand option for version command, reducing potential user errors and improving command-line efficiency. - Added `-v` as a shorthand for the `--version` command in the parser. - Ensures quicker access to version information, aligning with common CLI practices. Signed-off-by: Glenn --- src/config.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.cr b/src/config.cr index d6e64d3..aca2f33 100644 --- a/src/config.cr +++ b/src/config.cr @@ -201,7 +201,7 @@ module CodePreloader @trace = true end - parser.on("--version", "Show version") do + parser.on("-v", "--version", "Show version") do @subcommand = Subcommand::Version end