Skip to content

Commit

Permalink
Merge pull request #2105 from fishtown-analytics/fix/docs-generate-ba…
Browse files Browse the repository at this point in the history
…d-docs

Fix docstring for dbt docs/source to not include misleading flags (#2038)
  • Loading branch information
beckjake authored Feb 10, 2020
2 parents 1e6790a + 1fc4718 commit 80e7e71
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 80e7e71

Please sign in to comment.