mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-04-01 18:06:46 +00:00
update cacheDir config option
This commit is contained in:
@@ -394,6 +394,11 @@ pub fn printUsageAndExit(self: *const Config, success: bool) void {
|
|||||||
\\
|
\\
|
||||||
\\--web-bot-auth-domain
|
\\--web-bot-auth-domain
|
||||||
\\ Your domain e.g. yourdomain.com
|
\\ Your domain e.g. yourdomain.com
|
||||||
|
\\
|
||||||
|
\\--cache-dir
|
||||||
|
\\ Path to a directory to use as a Filesystem Cache for network resources.
|
||||||
|
\\ Omitting this will result is no caching.
|
||||||
|
\\ Defaults to no caching.
|
||||||
;
|
;
|
||||||
|
|
||||||
// MAX_HELP_LEN|
|
// MAX_HELP_LEN|
|
||||||
@@ -1055,9 +1060,9 @@ fn parseCommonArg(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (std.mem.eql(u8, "--cache_dir", opt)) {
|
if (std.mem.eql(u8, "--cache-dir", opt)) {
|
||||||
const str = args.next() orelse {
|
const str = args.next() orelse {
|
||||||
log.fatal(.app, "missing argument value", .{ .arg = "--cache_dir" });
|
log.fatal(.app, "missing argument value", .{ .arg = "--cache-dir" });
|
||||||
return error.InvalidArgument;
|
return error.InvalidArgument;
|
||||||
};
|
};
|
||||||
common.cache_dir = try allocator.dupe(u8, str);
|
common.cache_dir = try allocator.dupe(u8, str);
|
||||||
|
|||||||
Reference in New Issue
Block a user