refactor: change -f to -1 to get one result

main
Guilian 2025-01-20 17:03:32 +01:00
parent 763484013c
commit bd2b04216c
Signed by: Guilian
GPG Key ID: B86CC9678982ED8C
1 changed files with 2 additions and 2 deletions

View File

@ -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,
}