Skip to content

Commit

Permalink
Add source paths
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Jun 9, 2020
1 parent 0c9fa56 commit f2fc6be
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 139 deletions.
8 changes: 8 additions & 0 deletions isort/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ def _build_arg_parser() -> argparse.ArgumentParser:
"stdin. Otherwise provide a list of files to sort."
)
inline_args_group = parser.add_mutually_exclusive_group()
parser.add_argument(
"--src",
"--src-path",
dest="source_paths",
action="append",
help="Add an explicitly defined source path "
"(modules within src paths have their imports automatically catorgorized as first_party).",
)
parser.add_argument(
"-a",
"--add-import",
Expand Down
Loading

0 comments on commit f2fc6be

Please sign in to comment.