From 5ba038c3eb07fc94fc8d6f46b451f552bfc121a4 Mon Sep 17 00:00:00 2001 From: tsne Date: Fri, 19 Jun 2026 13:09:03 +0200 Subject: minor bugfixes and output formatting --- src/cli.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cli.zig') diff --git a/src/cli.zig b/src/cli.zig index 5b43e96..3525896 100644 --- a/src/cli.zig +++ b/src/cli.zig @@ -79,6 +79,8 @@ pub fn next_subcommand(comptime Command: type) ?Command.Subcommands { } /// Return the next positional argument or `null` if there are no more arguments. +/// The returned slice is pointing to an internal buffer and is only guaranteed to +/// be valid until the next call. pub fn next_positional() ?[]const u8 { if (current_cmd) |cmd| { current_cmd = null; -- cgit v1.3