Skip to content

Commit d05ad3c

Browse files
committed
Update mini-help.
1 parent 70c17e6 commit d05ad3c

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,11 @@ Options
380380
-f <format> : Output format, support depends on command. One of
381381
: native (default), s-expr, plist, json, csv
382382
Unique prefix ok, so -fs , -fp, -fj or -fc is sufficient.
383+
-g <regex> : 'grep' filter output with regular expression. Can be
384+
provided multiple times to narrow match ('and' semantics).
385+
Outputs are highlit with different colors (also see '-O')
386+
-O : 'or' smentics for for `-g`. Instead of requiring all
387+
regexs to match for a record, require one of them.
383388
-r : Follow dependencies recursively starting from pattern.
384389
Without numeric parameter, follows dependencies to the end.
385390
An optional parameter allows to limit the nesting depth,
@@ -423,16 +428,14 @@ Commands (unique prefix sufficient):
423428
→ 2 column table: (target, dependency*)
424429
has-dependent : List cc library targets and the libraries that depend on it
425430
→ 2 column table: (target, dependent*)
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)
431+
target-hdrs, : Print either hdrs, srcs or data mentioned in targets.
432+
target-srcs, -P: only if these are physical files
433+
target-data → 2 column table: (header-filename, target)
432434
lib-headers : Like target-hdrs, but all reachable paths expanded with all
433435
combinations of includes = [], include_prefix, etc.
434436
So same header can show up multiple times with different
435437
paths. This is the relevant list used by dwyu.
438+
Use -r to recurse into dependencies beyond match pattern.
436439
→ 2 column table: (header-filename, cc-library-target)
437440
genrule-outputs: Print generated files by genrule()s matching pattern.
438441
→ 2 column table: (filename, genrule-target)

bant/bant.cc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,14 @@ Commands (unique prefix sufficient):
136136
→ 2 column table: (target, dependency*)
137137
has-dependent : List cc library targets and the libraries that depend on it
138138
→ 2 column table: (target, dependent*)
139-
target-hdrs : Print hdrs mentioned in targets (-P: only physical files)
140-
→ 2 column table: (header-filename, target)
141-
target-srcs : Print srcs mentioned in targets (-P: only physical files)
142-
→ 2 column table: (srcs-filename, target)
143-
target-data : Print data mentioned in targets (-P: only physical files)
144-
→ 2 column table: (data-filename, target)
139+
target-hdrs, : Print either hdrs, srcs or data mentioned in targets.
140+
target-srcs, -P: only if these are physical files
141+
target-data → 2 column table: (header-filename, target)
145142
lib-headers : Like target-hdrs, but all reachable paths expanded with all
146143
combinations of includes = [], include_prefix, etc.
147144
So same header can show up multiple times with different
148145
paths. This is the relevant list used by dwyu.
146+
Use -r to recurse into dependencies beyond match pattern.
149147
→ 2 column table: (header-filename, cc-library-target)
150148
genrule-outputs: Print generated files by genrule()s matching pattern.
151149
→ 2 column table: (filename, genrule-target)

0 commit comments

Comments
 (0)