From 568e6a75079bfe5b9b504196c0bc041321a92bac Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Sun, 23 Apr 2023 15:00:57 +0200 Subject: [PATCH] fix: [tool] minor cosmetic fix --- tools/gen_relationships.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/gen_relationships.py b/tools/gen_relationships.py index 1e03573..9d01f9b 100755 --- a/tools/gen_relationships.py +++ b/tools/gen_relationships.py @@ -68,7 +68,7 @@ class AtLeastTwoItemsAction(argparse.Action): setattr(namespace, self.dest, filenames) -parser = argparse.ArgumentParser(description="MISP Galaxy relationship tool.") +parser = argparse.ArgumentParser(description="MISP Galaxy relationship creation tool.") parser.add_argument("files", nargs='+', help="The names of the clusters. (filename or cluster-name)", action=AtLeastTwoItemsAction) @@ -80,7 +80,7 @@ parser.add_argument("-sd", "--synonyms-destination", action='store_true') parser.add_argument("-y", "--yes", help="Assume yes to all the questions, so create relationships without asking.", - action='store_true') # FIXME develop this feature + action='store_true') parser.add_argument('-v', '--verbose', action='count', default=0) args = parser.parse_args() @@ -144,7 +144,6 @@ try: create_relationship = True else: # interactive prompt to ask what to do - # TODO add question which tags and relationship type and more print(f"Found non-existing match for {cluster_filename} {values_to_lookup} in {lookup_cluster_filename} {lookup_cluster_values}.") while True: user_input = input(f"Create relation? [\u0332yes] / \u0332no / \u0332details / \u0332tags / \u0332relation: ").lower().strip()