Skip to content

Commit 5bc9ce1

Browse files
committed
Update synopsis in README.
1 parent 5874a31 commit 5bc9ce1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ overhead.
370370
### Synopsis
371371

372372
```
373-
bant v0.2.0+ <http://bant.build/>
373+
bant v0.2.xx <http://bant.build/>
374374
Copyright (c) 2024-2025 Henner Zeller. This program is free software; GPL 3.0.
375375
Usage: bant [options] <command> [bazel-target-pattern...]
376376
Options
@@ -423,7 +423,16 @@ Commands (unique prefix sufficient):
423423
→ 2 column table: (target, dependency*)
424424
has-dependent : List cc library targets and the libraries that depend on it
425425
→ 2 column table: (target, dependent*)
426-
lib-headers : Print headers provided by cc_library()s matching pattern.
426+
target-hdrs : Print hdrs mentioned in targets (-P: only physical files)
427+
→ 2 column table: (header-filename, target)
428+
target-srcs : Print srcs mentioned in targets (-P: only physical files)
429+
→ 2 column table: (srcs-filename, target)
430+
target-data : Print data mentioned in targets (-P: only physical files)
431+
→ 2 column table: (data-filename, target)
432+
lib-headers : Like target-hdrs, but all reachable paths expanded with all
433+
combinations of includes = [], include_prefix, etc.
434+
So same header can show up multiple times with different
435+
paths. This is the relevant list used by dwyu.
427436
→ 2 column table: (header-filename, cc-library-target)
428437
genrule-outputs: Print generated files by genrule()s matching pattern.
429438
→ 2 column table: (filename, genrule-target)

0 commit comments

Comments
 (0)