Lightpanda: the headless browser designed for AI and automation
fix help ordering, remove unnecessary pub
Karl Seguin58e1a547d8c5
diff --git a/src/Config.zig b/src/Config.zigindex fbbb4c223..c70374468 100644--- a/src/Config.zig+++ b/src/Config.zig@@ -1070,7 +1070,7 @@ pub const HttpHeaders = struct {/// Chrome's shape: the tag, then its language alone, then English as a/// last resort, with descending q values. `buf` must hold the longest/// output for a tag that passed validateLocale (35 + 24 bytes).- pub fn acceptLanguageFor(buf: *[64]u8, tag: []const u8) []const u8 {+ fn acceptLanguageFor(buf: *[64]u8, tag: []const u8) []const u8 {const primary = tag[0 .. std.mem.indexOfScalar(u8, tag, '-') orelse tag.len];var w: std.Io.Writer = .fixed(buf);w.writeAll(tag) catch unreachable;diff --git a/src/help.zon b/src/help.zonindex 809efa3b0..48a43b012 100644--- a/src/help.zon+++ b/src/help.zon@@ -443,6 +443,10 @@\\ --insecure-disable-tls-host-verification\\ Disables host verification on all HTTP requests.\\ Only set this if you understand and accept the risk.+ \\ --locale <TAG>+ \\ BCP 47 language tag driving navigator.language, the+ \\ Accept-Language header and the default locale of Intl and+ \\ toLocaleString. Defaults to en-US.\\ --log-filter <SCOPE>\\ Filter logs per scope, applied first-to-last. Can be passed multiple times.\\ "-X" (or bare "X") filters out a scope, "+X" filters it in, and@@ -459,10 +463,6 @@\\ The log level.\\ Defaults to {1s}.\\ Allowed values: "debug", "info", "warn", "error", "fatal".- \\ --locale <TAG>- \\ BCP 47 language tag driving navigator.language, the- \\ Accept-Language header and the default locale of Intl and- \\ toLocaleString. Defaults to en-US.\\ --obey-robots\\ Fetches and obeys robots.txt of the target page.\\ Defaults to false.