Skip to content

Commit

Permalink
Correct deprecated parameter to terraform-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tolidano committed Nov 1, 2020
1 parent 84374f6 commit 577a6d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pre_commit_hooks/terraform_docs_replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ def main(argv=None):
)
parser.add_argument(
'--sort-inputs-by-required', dest='sort', action='store_true',
help='[deprecated] use --sort-by-required instead',
)
parser.add_argument(
'--sort-by-required', dest='sort', action='store_true',
)
parser.add_argument(
'--with-aggregate-type-defaults', dest='aggregate', action='store_true',
Expand All @@ -35,7 +39,7 @@ def main(argv=None):
procArgs = []
procArgs.append('terraform-docs')
if args.sort:
procArgs.append('--sort-inputs-by-required')
procArgs.append('--sort-by-required')
if args.aggregate:
procArgs.append('--with-aggregate-type-defaults')
procArgs.append('md')
Expand Down

0 comments on commit 577a6d9

Please sign in to comment.