From bd2b04216ca5ba66cf7d2502707c71f6357348fe Mon Sep 17 00:00:00 2001 From: Guilian Date: Mon, 20 Jan 2025 17:03:32 +0100 Subject: [PATCH] refactor: change -f to -1 to get one result --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 380d2fc..aa9e5fb 100644 --- a/main.lua +++ b/main.lua @@ -21,7 +21,7 @@ local function print_usage() logger.print(" css_selector: CSS selector to search for") logger.print() logger.print(" Flags:") - logger.print(" -f, --first-only: return only the first match") + logger.print(" -1, --first-only: return only the first match") logger.print(" -q, --quiet: Don't print warnings") os.exit(1) end @@ -41,7 +41,7 @@ local LONGHAND_FLAGS = { } local SHORTHAND_FLAGS = { - ["f"] = FLAGS.FIRST_ONLY, + ["1"] = FLAGS.FIRST_ONLY, ["q"] = FLAGS.NO_PRINT_ERRORS, }