# stage2: add \`zig ar\` subcommand · gitcafe/zig

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

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

Visibility: public

Requested revision: 0afb5b2ec6de494efe0605b2270f6a01b95237af

Requested commit: 0afb5b2ec6de494efe0605b2270f6a01b95237af

Commit: 0afb5b2ec6de494efe0605b2270f6a01b95237af

Tree: b43c1faae430a6a0ac3f5801a278d36a0a13ed04

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: add `zig ar` subcommand

The same entrypoint supports the following commands:

 * ar
 * ranlib
 * dlltool
 * lib

For now, our strategy is to bundle the (renamed) `main()` function of
llvm-ar, same as our strategy for `zig clang`. However, as Zig matures,
a goal will be to replace the dependency on LLVM  with our own
implementation of this tool, so that it is available in builds of zig
that do not have LLVM extensions enabled.

This commit also categorizes the subcommands into categories in the
--help menu.

```

## Parents

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

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