From d548eb594b0f666a799ee3654ad076517a630a32 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 5 Aug 2015 18:24:01 -0400 Subject: Fix missing main() --- cbc/cli/recipe.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cbc/cli/recipe.py') 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() + -- cgit