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

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

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

Visibility: public

Requested revision: b4c0396d3cdd04fcced585bb304685dcdc33d874

Requested commit: b4c0396d3cdd04fcced585bb304685dcdc33d874

Commit: b4c0396d3cdd04fcced585bb304685dcdc33d874

Tree: 0ee81448e1c90ea67e49080bca984d9139d47aa6

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

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

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