cli: store manually parsed args for config replays

CLI args are stored in the configuration `_inputs` field for replaying
on configuration reload. When entering `parseManuallyHook`, we consume
all args, preventing storage for replays. Store the args when parsing
manually to allow replay of configuration.
This commit is contained in:
Tim Culverhouse
2023-12-19 09:38:11 -06:00
parent 1137da9238
commit d9e4431800

View File

@ -1639,6 +1639,7 @@ pub fn parseManuallyHook(self: *Config, alloc: Allocator, arg: []const u8, iter:
errdefer command.deinit();
while (iter.next()) |param| {
try self._inputs.append(alloc, try alloc.dupe(u8, param));
try command.appendSlice(param);
try command.append(' ');
}