From 25e57f272c798d24e9a034b193641c9056a6be8a Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 14 Jul 2019 13:25:19 +1000 Subject: [PATCH] graph: allow multiple target arguments --- graph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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())