diff options
-rw-r--r-- | cbc/cli/recipe.py | 6 |
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() + |