diff options
author | Aleksei Vetrov <vvvvvv@google.com> | 2023-09-08 15:19:25 +0100 |
---|---|---|
committer | Giuliano Procida <gprocida@google.com> | 2023-09-12 09:31:53 +0100 |
commit | 0d4705931faa4f17448b36dd04ca19659eb512f8 (patch) | |
tree | d7c1b937c12b32dd50856d79d5d9c08edaaf3214 | |
parent | 7bb30801bfd8df4881202cc0b03fb0e785668f7f (diff) | |
download | stg-0d4705931faa4f17448b36dd04ca19659eb512f8.tar.gz |
Add `--symbol-filter` option as synonym for `--symbols`
The new name is used to emphasise that this option takes not only a
list of symbols but filter expression.
PiperOrigin-RevId: 563744938
Change-Id: I7d9634fbfcac58c016eb9ca89d7a31f1ba4ec1e4
-rw-r--r-- | doc/stg.md | 2 | ||||
-rw-r--r-- | stg.cc | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -14,7 +14,7 @@ stg [-i|--info] [-d|--keep-duplicates] [-t|--types] - [-S|--symbols <filter>] + [-S|--symbols|--symbol-filter <filter>] [--skip-dwarf] [-a|--abi|-b|--btf|-e|--elf|-s|--stg] [file] ... [{-o|--output} {filename|-}] ... @@ -127,6 +127,7 @@ int main(int argc, char* argv[]) { {"keep-duplicates", no_argument, nullptr, 'd' }, {"types", no_argument, nullptr, 't' }, {"symbols", required_argument, nullptr, 'S' }, + {"symbol-filter", required_argument, nullptr, 'S' }, {"abi", no_argument, nullptr, 'a' }, {"btf", no_argument, nullptr, 'b' }, {"elf", no_argument, nullptr, 'e' }, @@ -141,7 +142,7 @@ int main(int argc, char* argv[]) { << " [-i|--info]\n" << " [-d|--keep-duplicates]\n" << " [-t|--types]\n" - << " [-S|--symbols <filter>]\n" + << " [-S|--symbols|--symbol-filter <filter>]\n" << " [--skip-dwarf]\n" << " [-a|--abi|-b|--btf|-e|--elf|-s|--stg] [file] ...\n" << " [{-o|--output} {filename|-}] ...\n" |