aboutsummaryrefslogtreecommitdiff
path: root/src/cli.zig
diff options
context:
space:
mode:
authortsne <tsne.dev@outlook.com>2026-06-19 13:09:03 +0200
committertsne <tsne.dev@outlook.com>2026-06-21 08:51:45 +0200
commit5ba038c3eb07fc94fc8d6f46b451f552bfc121a4 (patch)
tree4bc57b4616943f5ef014ae2081c3c680a506b6ef /src/cli.zig
parentupgrade to zig 0.16 (diff)
downloadporteur-5ba038c3eb07fc94fc8d6f46b451f552bfc121a4.tar.gz
minor bugfixes and output formattingHEADmain
Diffstat (limited to 'src/cli.zig')
-rw-r--r--src/cli.zig2
1 files changed, 2 insertions, 0 deletions
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;