aboutsummaryrefslogtreecommitdiff
path: root/cbc/cli/recipe.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-08-05 18:24:01 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-08-05 18:24:01 -0400
commit8ca50aab13c9208ee5c67bbed97b7a61af8a5c87 (patch)
tree453aaadc3a5e88badf1dc3d0c78b8605a3311a79 /cbc/cli/recipe.py
parent40813d95563efe18debd231676c90d7d3bd47910 (diff)
downloadcbc-8ca50aab13c9208ee5c67bbed97b7a61af8a5c87.tar.gz
Fix missing main()1.1
Diffstat (limited to 'cbc/cli/recipe.py')
-rw-r--r--cbc/cli/recipe.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cbc/cli/recipe.py b/cbc/cli/recipe.py
index b9a58b5..8fabe2f 100644
--- a/cbc/cli/recipe.py
+++ b/cbc/cli/recipe.py
@@ -10,7 +10,7 @@ RECIPE_TYPES = ['python',
'scons',
'cmake']
-if __name__ == '__main__':
+def main():
parser = argparse.ArgumentParser()
parser.add_argument('--style', default='python')
parser.add_argument('--name', default='')
@@ -161,3 +161,7 @@ if errorlevel 1 exit 1
with open(RECIPE, 'w+') as recipe:
config.write(recipe)
+
+if __name__ == '__main__':
+ main()
+