Skip to content

Commit

Permalink
add --project-dir flag to allow specifying project directory
Browse files Browse the repository at this point in the history
In particular, this is the directory that contains the dbt_project.yml
file and all the related project files and directories.

Without this flag, it is necessary to cd to the project directory before
running dbt.

See #1544


automatic commit by git-black, original commits:
  2e7c1fd
  • Loading branch information
Matt Ball authored and iknox-fa committed Feb 8, 2022
1 parent c6d5906 commit 6158a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def _build_base_subparser():
base_subparser = argparse.ArgumentParser(add_help=False)

base_subparser.add_argument(
'--project-dir',
"--project-dir",
default=None,
type=str,
help='''
Expand Down

0 comments on commit 6158a34

Please sign in to comment.