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

main
evilgooinajar 2025-01-20 17:03:32 +01:00
parent 3d2c797b23
commit bf8adcd9b9
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,
}