Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docstring for dbt docs/source to not include misleading flags (#2038) #2105

Merged
merged 1 commit into from
Feb 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/dbt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ def _build_base_subparser():
def _build_docs_subparser(subparsers, base_subparser):
docs_sub = subparsers.add_parser(
'docs',
parents=[base_subparser],
help='''
Generate or serve the documentation website for your project.
'''
Expand All @@ -298,7 +297,6 @@ def _build_docs_subparser(subparsers, base_subparser):
def _build_source_subparser(subparsers, base_subparser):
source_sub = subparsers.add_parser(
'source',
parents=[base_subparser],
help='''
Manage your project's sources
''',
Expand Down Expand Up @@ -884,7 +882,9 @@ def parse_args(args, cls=DBTArgumentParser):
sys.exit(1)

parsed = p.parse_args(args)
parsed.profiles_dir = os.path.expanduser(parsed.profiles_dir)

if hasattr(parsed, 'profiles_dir'):
parsed.profiles_dir = os.path.expanduser(parsed.profiles_dir)

if not hasattr(parsed, 'which'):
# the user did not provide a valid subcommand. trigger the help message
Expand Down