Rename --dump flag to --html

--dump is still supported but deprecated
This commit is contained in:
Adrià Arrufat
2026-02-17 00:35:15 +09:00
parent 748b37f1d6
commit d3ba714aba
2 changed files with 15 additions and 9 deletions

View File

@@ -107,7 +107,7 @@ fn run(allocator: Allocator, main_arena: Allocator) !void {
},
.fetch => |opts| {
const url = opts.url;
log.debug(.app, "startup", .{ .mode = "fetch", .dump = opts.dump, .url = url, .snapshot = app.snapshot.fromEmbedded() });
log.debug(.app, "startup", .{ .mode = "fetch", .html = opts.html, .url = url, .snapshot = app.snapshot.fromEmbedded() });
var fetch_opts = lp.FetchOpts{
.wait_ms = 5000,
@@ -120,7 +120,7 @@ fn run(allocator: Allocator, main_arena: Allocator) !void {
var stdout = std.fs.File.stdout();
var writer = stdout.writer(&.{});
if (opts.dump or opts.markdown) {
if (opts.html or opts.markdown) {
fetch_opts.writer = &writer.interface;
}