shared/options: extend comment

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-04-03 12:30:41 +02:00
parent 805d3f5c53
commit b4e0ff0874
+2 -1
View File
@@ -238,7 +238,8 @@ char** option_parser_get_args(const OptionParser *state) {
/* Returns positional args as a strv.
* If "--" was found, it has been moved before state->positional_offset.
* The array is only valid, i.e. clean without any options, after parsing
* has naturally finished. */
* has naturally finished. The array that is returned is a slice of the
* original argv array, so it must not be freed or modified. */
assert(state->optind > 0);
assert(state->optind == state->argc || state->parsing_stopped);