# docgen: improve command-line argument parsing · gitcafe/zig

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

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

Visibility: public

Requested revision: fde57330fa25ec495e3dbf6d9de50ec07acfe21f

Requested commit: fde57330fa25ec495e3dbf6d9de50ec07acfe21f

Commit: fde57330fa25ec495e3dbf6d9de50ec07acfe21f

Tree: bbb7bc2ecda5886538534efd07ae9aeeec2ed0c7

Author: Manlio Perillo

Committer: Manlio Perillo

## Message

```
docgen: improve command-line argument parsing

Implement a simple command-line argument parser, adapted from the Zig
compiler implementation.

Promote the zig positional argument to an option.

```

## Parents

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

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