Skip to content

Commit

Permalink
Changed cli() invocations to fix a general problem. (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
eerkunt authored Nov 8, 2018
1 parent 57a2650 commit 506e58c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions terraform_compliance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,14 @@ def pip(action, package, params=None):


__app_name__ = "terraform-compliance"
__version__ = "0.4.6"
__version__ = "0.4.7"


class ArgHandling(object):
pass

def cli(arghandling, argparser):
def cli(arghandling=ArgHandling(), argparser=ArgumentParser(prog=__app_name__,
description="BDD Test Framework for Hashicorp terraform")):
args = arghandling
parser = argparser
parser.add_argument("--features", "-f", dest="features", metavar='feature_directory', action=ReadableDir,
Expand Down Expand Up @@ -110,5 +111,4 @@ def cli(arghandling, argparser):
return result

if __name__ == '__main__':
cli(ArgHandling(), ArgumentParser(prog=__app_name__,
description="BDD Test Framework for Hashicorp terraform"))
cli()

0 comments on commit 506e58c

Please sign in to comment.