diff --git a/graph.py b/graph.py index e78693f..34f129b 100755 --- a/graph.py +++ b/graph.py @@ -42,14 +42,14 @@ if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--data', type=str, default=recipe_root) - parser.add_argument('--target', type=str, required=False) + parser.add_argument('--target', type=str, nargs="*") args = parser.parse_args() recipes = satisfactory.Cookbook(args.data) if args.target: - graph_one(recipes, args.target) + graph(recipes, args.target) else: graph(recipes, recipes.components())