Skip to content

Commit

Permalink
-i shortcut for --imports, refs #26
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jun 21, 2023
1 parent 4f02847 commit 90ee75e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ cog.out(
)
]]] -->
```python
# File: symbex/cli.py Line: 114
# File: symbex/cli.py Line: 115
def cli(symbols, files, directories, excludes, signatures, imports, docstrings, count, silent, async_, function, class_, documented, undocumented, typed, untyped, partially_typed, fully_typed)

# File: symbex/cli.py Line: 321
# File: symbex/cli.py Line: 322
def is_subpath(path: ?, parent: ?) -> bool

# File: symbex/lib.py Line: 106
Expand Down Expand Up @@ -318,7 +318,7 @@ Options:
-d, --directory DIRECTORY Directories to search
-x, --exclude DIRECTORY Directories to exclude
-s, --signatures Show just function and class signatures
--imports Show 'from x import y' lines for imported symbols
-i, --imports Show 'from x import y' lines for imported symbols
--docstrings Show function and class signatures plus docstrings
--count Show count of matching symbols
--silent Silently ignore Python files with parse errors
Expand Down
1 change: 1 addition & 0 deletions symbex/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
help="Show just function and class signatures",
)
@click.option(
"-i",
"--imports",
is_flag=True,
help="Show 'from x import y' lines for imported symbols",
Expand Down

0 comments on commit 90ee75e

Please sign in to comment.