Skip to content

Commit

Permalink
Fix arguments to the factory (sagemath#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotrevisani committed Feb 9, 2020
1 parent a3612d5 commit 28280e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions grayskull/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import argparse
import sys

from grayskull.base.factory import GrayskullFactory

Expand Down Expand Up @@ -29,10 +28,11 @@ def main():

if args.grayskull_power:
print("By the power of Grayskull...\nI have the power!")
sys.exit()

recipe = GrayskullFactory.create_recipe(args.repo_type, args.version)
recipe.to_file(args.output)
recipe = GrayskullFactory.create_recipe(
args.repo_type[0], args.repo_type[1], args.version
)
recipe.generate_recipe(args.output)


if __name__ == "__main__":
Expand Down

0 comments on commit 28280e2

Please sign in to comment.