# CLI: infer \-\-name based on first C source file or object · gitcafe/zig

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

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

Visibility: public

Requested revision: cb896a657358d5add8970826277f66a20fecc2df

Requested commit: cb896a657358d5add8970826277f66a20fecc2df

Commit: cb896a657358d5add8970826277f66a20fecc2df

Tree: f4c2bbd93ab6a41cca87b7afe79bff491ddbc15d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
CLI: infer --name based on first C source file or object

Previously, --name would only be inferred if there was exactly 1 C
source file or exactly 1 object. Now it will be inferred if there is at
least one of either.

```

## Parents

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

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