# use process.argsWithAllocator iterator for command line handling · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/0778f644b519a83e95848d05d5a9e6241f8f41f3)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 0778f644b519a83e95848d05d5a9e6241f8f41f3

Requested commit: 0778f644b519a83e95848d05d5a9e6241f8f41f3

Commit: 0778f644b519a83e95848d05d5a9e6241f8f41f3

Tree: 44a16593fc2db28226d29ecda285ee76b3a1a035

Author: Stephen Gutekanst

Committer: Stephen Gutekanst

## Message

```
use process.argsWithAllocator iterator for command line handling

This change refactors the `zig` argument handling (for `build-lib`, etc.
commands) to use a `process.argsWithAllocator` iterator instead of
directly accessing arguments via array indices. This supports the next
commit which will enable us to use a response file argument iterator
here seamlessly.

Helps #10693

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>

```

## Parents

- [2c8541bdde0b5ffd291600639b6123e512496923](https://git.cafe/gitcafe/zig/commit/2c8541bdde0b5ffd291600639b6123e512496923?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/0778f644b519a83e95848d05d5a9e6241f8f41f3?format=markdown)
