From 577a6d9b9c5295f9e9eac87f4e7b988d6f97047f Mon Sep 17 00:00:00 2001 From: Shawn Tolidano Date: Sat, 31 Oct 2020 23:16:20 -0400 Subject: [PATCH] Correct deprecated parameter to terraform-docs --- pre_commit_hooks/terraform_docs_replace.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pre_commit_hooks/terraform_docs_replace.py b/pre_commit_hooks/terraform_docs_replace.py index 05fec622e..bcef9a975 100644 --- a/pre_commit_hooks/terraform_docs_replace.py +++ b/pre_commit_hooks/terraform_docs_replace.py @@ -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', @@ -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')