This commit is contained in:
Mariusz B. / mgeeky 2021-10-22 20:37:08 +02:00
parent 0b283e7270
commit 7d23f0b1fa
2 changed files with 5 additions and 5 deletions

View File

@ -33,11 +33,11 @@ Output sorting:
-d, --descending Sort in descending order instead of default of descending.
-c COLUMN, --column COLUMN
Sort by this column name. Default: filename. Available columns: "filename", "symbol type", "module", "symbol", "file size", "path"
-n NUM, --first NUM Show only first N results, as specified in this paremeter. By default will show all candidates.
-i, --imports Filter only Imports.
-e, --exports Filter only Exports.
-n NUM, --first NUM Show only first N results, as specified in this paremeter. By default will show all candidates.=
Output filtering:
-i, --imports Filter only Imports.
-e, --exports Filter only Exports.
-s NAME, --name NAME Search for symbols with name matching this regular expression. Can be repeated, case insensitive, constructs: ".+VALUE.+"
-S NOT_NAME, --not-name NOT_NAME
Search for symbols with name NOT matching this regular expression.

View File

@ -288,8 +288,8 @@ def opts(argv):
sorting.add_argument('-n', '--first', type=int, default=0, metavar='NUM', help='Show only first N results, as specified in this paremeter. By default will show all candidates.')
filters = params.add_argument_group('Output filtering')
sorting.add_argument('-i', '--imports', action='store_true', help = 'Filter only Imports.')
sorting.add_argument('-e', '--exports', action='store_true', help = 'Filter only Exports.')
filters.add_argument('-i', '--imports', action='store_true', help = 'Filter only Imports.')
filters.add_argument('-e', '--exports', action='store_true', help = 'Filter only Exports.')
filters.add_argument('-s', '--name', action='append', default=[], help = 'Search for symbols with name matching this regular expression. Can be repeated, case insensitive, constructs: ".+VALUE.+"')
filters.add_argument('-S', '--not-name', action='append', default=[], help = 'Search for symbols with name NOT matching this regular expression.')
filters.add_argument('-m', '--module', action='append', default=[], help = 'Search for symbols exported in/imported from this module matching regular expression.')