diff options
| author | tsne <tsne.dev@outlook.com> | 2026-06-19 13:09:03 +0200 |
|---|---|---|
| committer | tsne <tsne.dev@outlook.com> | 2026-06-21 08:51:45 +0200 |
| commit | 5ba038c3eb07fc94fc8d6f46b451f552bfc121a4 (patch) | |
| tree | 4bc57b4616943f5ef014ae2081c3c680a506b6ef /src/cli.zig | |
| parent | upgrade to zig 0.16 (diff) | |
| download | porteur-5ba038c3eb07fc94fc8d6f46b451f552bfc121a4.tar.gz | |
Diffstat (limited to 'src/cli.zig')
| -rw-r--r-- | src/cli.zig | 2 |
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; |