diff options
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; |